Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork966
Closed
Labels
Description
I get this assert:
File "/home/barry/wc/git/scm-workbench/Source/Git/wb_git_project.py", line 217, in canPush
for ref in remote.refs:
File "/home/barry/wc/git/scm-workbench/Source/Git/git/remote.py", line 463, in refs
assert out_refs, "Remote %s did not have any references" % self.name
AssertionError: Remote origin did not have any references
But git remote -v is happy:
$ git remote -v
originhttps://github.com/barry-scott/BarrysEmacs.git (fetch)
originhttps://github.com/barry-scott/BarrysEmacs.git (push)
It seems that subgit used the .git/.config file to setup the remote. Here is the .git/config
cat config
[core]repositoryformatversion = 0filemode = truebare = falselogallrefupdates = trueautocrlf = falseeol = lfsymlinks = true[remote "origin"]url = https://github.com/barry-scott/BarrysEmacs.gitfetch = +refs/heads/*:refs/remotes/origin/*[branch "master"]remote = originmerge = refs/heads/master[gc]autodetach = falseauto = 0
It seems that GitPython should be looking in config as well to find remote info but is not.