mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Cleanup stale manifest migration code from manifest.py
Prior to open-sourcing repo we had manifests in two different layouts; one where the manifest was a straight-up git clone, and one where the manifest was our bare repository with symlink work tree format (identical to what our projects use). Only the latter form is created or used by repo at this point, so the transition code to handle the straight-up git clone is not necessary. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
9fa44db94b
commit
f5c25a68d8
11
manifest.py
11
manifest.py
@ -45,16 +45,9 @@ class Manifest(object):
|
||||
gitdir = os.path.join(repodir, 'repo/.git'),
|
||||
worktree = os.path.join(repodir, 'repo'))
|
||||
|
||||
wt = os.path.join(repodir, 'manifests')
|
||||
gd_new = os.path.join(repodir, 'manifests.git')
|
||||
gd_old = os.path.join(wt, '.git')
|
||||
if os.path.exists(gd_new) or not os.path.exists(gd_old):
|
||||
gd = gd_new
|
||||
else:
|
||||
gd = gd_old
|
||||
self.manifestProject = MetaProject(self, 'manifests',
|
||||
gitdir = gd,
|
||||
worktree = wt)
|
||||
gitdir = os.path.join(repodir, 'manifests.git'),
|
||||
worktree = os.path.join(repodir, 'manifests'))
|
||||
|
||||
self._Unload()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user