Tickets

Issues

Repositories without a master branch fail

  • Id: no_master_branch
  • Status: Open
  • Initial commit: 104a395f19c235a258f0aff9bff47a92b34d0866
  • Creation date: 2013-02-20 22:37:06
  • Last changed: 2023-01-18 12:16:41
  • Created by: Laurent Defert
  • File:
  • Last changed by: Laurent DEFERT
  • Tag: v0.1

The build fails with:

Traceback (most recent call last):
  File "./scripts/staticpm", line 37, in <module>
    app.main()
  File "/home/lds/dev/staticpm/staticpm/staticpm.py", line 51, in main
    self.parse_commits()
  File "/home/lds/dev/staticpm/staticpm/staticpm.py", line 59, in parse_commits
    tab.parse_commits()
  File "/home/lds/dev/staticpm/staticpm/tabs/tab.py", line 19, in parse_commits
    for commit in self.repo_tab.get_commits_tree():
  File "/home/lds/dev/staticpm/staticpm/tabs/repository/repository.py", line 103, in get_commits_tree
    for commit, graph in self.repo._walk_commit_tree():
  File "/home/lds/dev/staticpm/staticpm/git.py", line 298, in _walk_commit_tree
    current = self.repo['refs/heads/master']
  File "/usr/lib/python2.7/site-packages/dulwich/repo.py", line 1112, in __getitem__
    return self.object_store[self.refs[name]]
  File "/usr/lib/python2.7/site-packages/dulwich/repo.py", line 275, in __getitem__
    raise KeyError(name)
KeyError: 'refs/heads/master'

History
    Changed by Laurent DEFERT on 2023-01-18 12:16:41 during fbea579dac61d4988aca4bf9bd4c0578003a2385
  • Content: updated from

    The build fails with:

    Traceback (most recent call last):
      File "./scripts/kissspm", line 37, in <module>
        app.main()
      File "/home/lds/dev/kissspm/kissspm/kissspm.py", line 51, in main
        self.parse_commits()
      File "/home/lds/dev/kissspm/kissspm/kissspm.py", line 59, in parse_commits
        tab.parse_commits()
      File "/home/lds/dev/kissspm/kissspm/tabs/tab.py", line 19, in parse_commits
        for commit in self.repo_tab.get_commits_tree():
      File "/home/lds/dev/kissspm/kissspm/tabs/repository/repository.py", line 103, in get_commits_tree
        for commit, graph in self.repo._walk_commit_tree():
      File "/home/lds/dev/kissspm/kissspm/git.py", line 298, in _walk_commit_tree
        current = self.repo['refs/heads/master']
      File "/usr/lib/python2.7/site-packages/dulwich/repo.py", line 1112, in __getitem__
        return self.object_store[self.refs[name]]
      File "/usr/lib/python2.7/site-packages/dulwich/repo.py", line 275, in __getitem__
        raise KeyError(name)
    KeyError: 'refs/heads/master'
    
  • Changed by Laurent Defert on 2013-03-01 19:12:33 during 68a732b021046c49ad6ede7fa084eb4bed53b621
  • Tag: v0.1