Closed
Description
This is a fresh install of Git For Windows: Git-2.5.0-64-bit.exe on Windows 10 (64 bit)
git --version
: git version 2.5.0.windows1
When I run git pull
(both outside and inside repos) I get the following message:
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?
I have traced it to . git-sh-setup
specifically:
eval "$(
echo "$OPTIONS_SPEC" |
git rev-parse --parseopt $parseopt_extra -- "$@" ||
echo exit $?
)"
@dscho requested I insert set -x
before that line which outputs:
+++ echo 'git pull [options] [<repository> [<refspec>...]]
Fetch one or more remote refs and integrate it/them with the current HEAD.
--
v,verbose be more verbose
q,quiet be more quiet
progress force progress reporting
Options related to merging
r,rebase?false|true|preserve incorporate changes by rebasing rather than merging
n! do not show a diffstat at the end of the merge
stat show a diffstat at the end of the merge
summary (synonym to --stat)
log?n add (at most <n>) entries from shortlog to merge commit message
squash create a single commit instead of doing a merge
commit perform a commit if the merge succeeds (default)
e,edit edit message before committing
ff allow fast-forward
ff-only! abort if fast-forward is not possible
+++ git rev-parse --parseopt --stuck-long --
verify-signatures verify that the named commit has a valid GPG signature
s,strategy=strategy merge strategy to use
X,strategy-option=option option for selected merge strategy
S,gpg-sign?key-id GPG sign commit
Options related to fetching
all fetch from all remotes
a,append append to .git/FETCH_HEAD instead of overwriting
upload-pack=path path to upload pack on remote end
f,force force overwrite of local branch
t,tags fetch all tags and associated objects
p,prune prune remote-tracking branches no longer on remote
recurse-submodules?on-demand control recursive fetching of submodules
dry-run dry run
k,keep keep downloaded pack
depth=depth deepen history of shallow clone
unshallow convert to a complete repository
update-shallow accept refs that update .git/shallow
refmap=refmap specify fetch refmap
'
+++ echo exit 127
++ eval 'exit 127'
+++ exit 127
fatal: 'pull' appears to be a git command, but we were not
able to execute it. Maybe git-pull is broken?