Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
6 years, 2 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:
- > Pre-build script start
- > No git version file to remove
- > Getting git SHA fatal: Needed a single revision
- > ERROR: Failed to get git SHA, do you have git.exe in your PATH environment va riable?
he responds when I call 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>]
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
6 years, 2 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.