Skip to content

Commit

Permalink
More fixes for bare projects in Project.add
Browse files Browse the repository at this point in the history
  • Loading branch information
abstrakraft committed Feb 27, 2012
1 parent 3fdd723 commit fe49b7f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions rug/project.py
Expand Up @@ -599,11 +599,12 @@ def add(self, path, name=None, remote=None, rev=None, vcs=None, use_sha=None):
#Write the manifest and reload repos
manifest.write(self.manifest_filename, remotes, repos, default)
self.read_manifest()
r = self.repos[path]
repo = r['repo']
branches = self.get_branch_names(r)

if not self.bare:
r = self.repos[path]
repo = r['repo']
branches = self.get_branch_names(r)

#Update rug_index
repo.update_ref(branches['rug_index'], rev)

Expand Down

0 comments on commit fe49b7f

Please sign in to comment.