Windows-Can't fetch/pull

Steve Heinsch February 26, 2015

I've just installed ST on windows and created a bookmark from a local repository. It connects to github fine, as I can see other team members changes showing up. I setup gitflow from within ST.

It might show something like my branch is 3 commits behind the github tracking branch, with a "3" next to the pull icon. If I pull, or fetch, it just sits there with the progress bar going and going, but nothing happens. If I switch to gitgui that came with git/windows, it pulls in like .5 seconds.

I've updated git itself to 1.9.5 from 1.9.4, uninstalled ST, reinstalled, etc. but the same thing happens.

It just says "Fetching all" and when I click the Show Full Output box, it says "git -c diff.mnemonicprefix=false -c core.quotepath=false fetch --tags github"

The same thing happens when trying to push. It just sits there with the progressbar spinning.

So I don't know why this isn't working, since it's connecting to github and showing all branches, etc. I just can't do anything else it seems.

6 answers

0 votes
Steve Heinsch February 28, 2015

The thing is, it should all work or not work. Like I can view the repository just fine. If there was a key issue it seems I shouldn't even be able to do that. It just doesn't make sense that I can view commits, etc, but not push/pull/fetch/etc. It's obviously doing some sort of (successful) polling because when someone else pushes to the repo it just shows up in ST.

0 votes
Steve Heinsch February 27, 2015

Ugh, I just noticed that I WAS using SSH for the bookmark created from a local copy. I was using Putty Pageant with regular git for the ssh keys. So I take it I have to use the built in ssh agent for the key?

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.
February 27, 2015

I use SourceTree with Pageant, so you should be able to get that to work. I'm not sure what's necessary offhand - it's been too long.

0 votes
Steve Heinsch February 27, 2015

Thanks for your reply smile 

The config that DOESN'T work (from Add Working Copy)

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	hideDotFiles = dotGitOnly
[remote "github"]
	url = git@github.com:ACCOUNT/REPO-NAME.git
	fetch = +refs/heads/*:refs/remotes/github/*
[gui]
	wmstate = normal
	geometry = 1336x695+304+160 378 307
[merge]
	summary = true
[gitflow "branch"]
	master = master
	develop = develop
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	support = support/
	versiontag = 
[branch "develop"]
	remote = github
	merge = refs/heads/develop

 

The one that works (clone from GitHub)

[core]
	repositoryformatversion = 0
	filemode = false
	bare = false
	logallrefupdates = true
	symlinks = false
	ignorecase = true
	hideDotFiles = dotGitOnly
[remote "origin"]
	url = https://github.com/ACCOUNT/REPO-NAME.git
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
	remote = origin
	merge = refs/heads/master
[gitflow "branch"]
	master = master
	develop = develop
[branch "develop"]
	remote = origin
	merge = refs/heads/develop
[gitflow "prefix"]
	feature = feature/
	release = release/
	hotfix = hotfix/
	support = support/
	versiontag =

I've just masked the github user ACCOUNT and the REPO-NAME, but they are identical in both.

0 votes
minnsey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 26, 2015

Hi,

Is it possible you are using SSH to connect to the repo but the SSH agent isn't running?

Try Tools/Launch SSH Agent.

Steve Heinsch February 27, 2015

No, I'm using https to connect. As a test, I cloned the repo from github and it worked fine. It just doesn't work when creating a bookmark from File->Clone/New->Add Working Copy.

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.
February 27, 2015

You might compare the repository configs between the repo you cloned directly from github and the existing one.

0 votes
Steve Heinsch February 26, 2015

Yes, I do. I also just tried using Embedded Git, but with the same result. Both are using Git 1.9.5.

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 Leaders.
February 26, 2015

Sounds like you are maintaining your own git installation. Do you have SourceTree set to use "system git"?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events