"git pull" returns error in Windows command prompt -
now have git repository on windows machine, , run automatic tests on repository perl. make sure every time launch test repository latest, use:
system("git pull");
before test.
but returns error:
fatal: uh oh. system reports no git commands @ all.
however, when run git show
same methodology, like:
system("git show");
the output ok, windows command prompt recognized git
command (and exist in system path). why of git commands succeed while others can't?
ps: i'm using git bash
, if launch perl script git bash, both git pull
, git show
work. expectation double click perl script run instead of calling git bash
shell.
make sure isn't path issue, explained in this link (for windows, valid other os too). check if don't have active git alias might prevent git pull work properly.
regarding path issue, op aladine confirms in comments:
i discover after reinstall git, works normal.
Comments
Post a Comment