Permalink
Browse files

More fixes for bare projects in Project.add

  • Loading branch information...
1 parent 3fdd723 commit fe49b7fd94686ae5ffacaf2acfe6a4d9761bffd1 @abstrakraft committed Feb 27, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 rug/project.py
View
@@ -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)

0 comments on commit fe49b7f

Please sign in to comment.