Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,004
Community Members
 
Community Events
184
Community Groups

Git tag, status, log failed with code -1 "The system cannot find the file specified"

Just downloaded SourceTree and dragged my project folder into the window. When I click into it all I get is a series of errors saying:

 

'git status' failed

'git log' failed

'git tag' failed

 

As below. What am I doing wrong here?

 

 

git-error.jpg

1 answer

1 accepted

0 votes
Answer accepted
Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 17, 2019

It looks like git isn't able to access the files in the repository -- do you have anti-virus or anything like that installed that's known to cause issues with programs attempting to access your filesystem?

Hmm, I have Norton antivirus. But turning that off doesn't seem to make any difference...

 I frequently use git through the command line? And if I hit the terminal button from within sourcetree I'm able to use it through that interface... is there something specific about git through the GUI that I need to be aware of?

Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 17, 2019

`C:\wamp\www\palsagency` is the path of the repository, right?

 

It's possible that git is on the "approved applications" list, but Sourcetree isn't so when git is run from it your AV might get confused.

 

I assume you're using the latest version of Sourcetree? Could you tell me the current version of git and if you're using embedded git or not (check under Tools > Options > Git > Git Version)?

Thanks for this, having done a bit more digging and based on this answer I tried switching to the embedded version of Git and it worked.

But by the looks of things it was looking for system git.exe under c:/Program Files(x86)/Git/cmd/ when in fact no such file exists on my machine. The git.exe is in c:/Program Files(x86)/Git/cmd/bin

Source Tree Version: 3.1.2

Git --version git 1.7.9.msysgit.0 (perhaps this is way out of date?)

So:

Is there any drawback to using the embedded Git version when I do have another version of Git installed on my machine?

Mike Corsaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 23, 2019

Ah, yeah that's a very old version of Git (the latest version is 2.21.0).

 

Using embedded git shouldn't cause any problems -- we include that as a feature for this exact reason 😊

Like Grimmrobe likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events