Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

subgit created repo causes GitPython to assert #480

Closed
Labels
@barry-scott

Description

@barry-scott

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp