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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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.

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
Deleted user Apr 05, 2017

Long Path Tool helped me in this situation.

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

5,216 views 0 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you