10 years, 5 months ago.

pre_build_script.py not working in my computer

You can not do anything about the environment variables are correct but I have always the same error here's what I write on the console:

C:\Users\dell690\Desktop\CMSIS-DAP-master\CMSIS-DAP-master\tools>pre_build_scrip t.py

  1. > Pre-build script start
  2. > No git version file to remove
  3. > Getting git SHA fatal: Needed a single revision
  4. > ERROR: Failed to get git SHA, do you have git.exe in your PATH environment va riable?

he responds when I call git....

C:\Users\dell690\Desktop\CMSIS-DAP-master\CMSIS-DAP-master\tools>git usage: git [version] [help] [-C <path>] [-c name=value] [exec-path[=<path>]] [html-path] [man-path] [info-path] [-p|paginate|no-pager] [no-replace-objects] [bare] [git-dir=<path>] [work-tree=<path>] [namespace=<name>] <command> [<args>]

The most commonly used git commands are: add Add file contents to the index bisect Find by binary search the change that introduced a bug branch List, create, or delete branches checkout Checkout a branch or paths to the working tree clone Clone a repository into a new directory commit Record changes to the repository diff Show changes between commits, commit and working tree, etc fetch Download objects and refs from another repository grep Print lines matching a pattern init Create an empty Git repository or reinitialize an existing one log Show commit logs merge Join two or more development histories together mv Move or rename a file, a directory, or a symlink pull Fetch from and integrate with another repository or a local branch

push Update remote refs along with associated objects rebase Forward-port local commits to the updated upstream head reset Reset current HEAD to the specified state rm Remove files from the working tree and from the index show Show various types of objects status Show the working tree status tag Create, list, delete or verify a tag object signed with GPG

see my answer

posted by Martin Kojtal 30 May 2014

1 Answer

10 years, 5 months ago.

did you clone the repository ? Try to execute the same command which is in the pre_build_script.py, to see if yo uget any output.

This is the command:

git rev-parse --verify HEAD

Please don't spam, this is the 3rd same question, I replied to all of them, we can continue in previous. Dontneed to start a new one. Thanks for understanding.

Regards, 0xc0170

git bash:

fatal: Not a git repository (or any of the parent directories): .git

posted by Sacchetti Giampaolo 30 May 2014

That's the error :-) How did you clone the repostiory? Is there .git in the root ? Did you use command git clone ? Or you just downloaded it ?

posted by Martin Kojtal 30 May 2014