The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Why can't sourcetree recognize a git repo from a child directory

jeff
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!
June 24, 2016

I've noticed that if i open SourceTree from below the root git working directory that SourceTree will not recognize that it has an existing bookmark for the repo and offer to create a new local repository. Is my SourceTree misconfigured or is it only able to be launched against the root of the repo? Or maybe there's something with the alias I'm using?

 

Steps (OSX)

  1. Open Terminal
  2. Create an alias like this

    alias st='open -a /Applications/SourceTree.app/Contents/MacOS/SourceTree'

  3. Navigate into the root of a git repo that has at least one folder
  4. Run 'st' and verify there is an existing bookmark and/or create a new one.
  5. Return back to the terminal session
  6. Navigate just one level deep into the repo
  7. Run 'st' and you're prompted to create  new bookmark
  8. "cringe"

Expected behavior:

  • I expect that SourceTree can figure out that I'm in a Git Repo since the actual git CLI tools can do that.. SourceTree should show me the Git Repo...

 

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
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 Champions.
June 27, 2016

Sounds like unusual SourceTree usage to me, but I can't think of any reason you shouldn't be able to use it that way. My guess is nobody's ever noticed that particular bug.

If you file a bug report at jira.atlassian.com, I imagine it could be addressed in the next version or two (I'm just a user though, so don't take that as any sort of commitment).

TAGS
AUG Leaders

Atlassian Community Events