Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Source Tree error: 'git status' failed with code 1: error launching git: the filename or extension is too long

ferie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2016

I have used Source Tree with the same repository and the same paths for months (in a Windows environment) then suddenly last Monday, this error has started to appear when the program is opening the repository.

I have already tried with the command line 

git config --system core.longpaths true

to avoids the length of the paths in a Windows environment, but it does not wok.

Any idea?

But most important: why it has worked perfectly since the beginning and only now there is this problem?

3 answers

1 accepted

0 votes
Answer accepted
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 27, 2016

Try git operations from the command line (fetch, checkout, branch, push, etc). If they have the same error, then you should take your question to a site like StackOverflow that has a larger number of git "power users", as compared to the UI-users that are subscribed to the "sourcetree" tag on this site.

If the command line works, then it sounds to me like you've got a candidate for a bug report at jira.atlassian.com.

ferie
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 27, 2016

I am forced to use the command line right now, so, yes, the command line is working, the problem is with Source Tree!

0 votes
bonnie jones
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 29, 2017

I would also suggest you try the Long Path Tool. It's simple to use and it really does the trick :)

0 votes
Deleted user April 5, 2017

Long Path Tool helped me in this situation.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events