summaryrefslogtreecommitdiffstats
path: root/manifest.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2008-11-04 08:11:53 -0800
committerShawn O. Pearce <sop@google.com>2008-11-04 09:45:59 -0800
commitf5c25a68d832f7eed55f939f97098071b20f753a (patch)
tree981c72da9567548971a71e8b85d39b4ecfabb6a8 /manifest.py
parent9fa44db94bfabcf43160316660801a2c1db2dbb9 (diff)
downloadgit-repo-f5c25a68d832f7eed55f939f97098071b20f753a.tar.gz
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>
Diffstat (limited to 'manifest.py')
-rw-r--r--manifest.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/manifest.py b/manifest.py
index ffff14a5..3d5e092c 100644
--- a/manifest.py
+++ b/manifest.py
@@ -45,16 +45,9 @@ class Manifest(object):
45 gitdir = os.path.join(repodir, 'repo/.git'), 45 gitdir = os.path.join(repodir, 'repo/.git'),
46 worktree = os.path.join(repodir, 'repo')) 46 worktree = os.path.join(repodir, 'repo'))
47 47
48 wt = os.path.join(repodir, 'manifests')
49 gd_new = os.path.join(repodir, 'manifests.git')
50 gd_old = os.path.join(wt, '.git')
51 if os.path.exists(gd_new) or not os.path.exists(gd_old):
52 gd = gd_new
53 else:
54 gd = gd_old
55 self.manifestProject = MetaProject(self, 'manifests', 48 self.manifestProject = MetaProject(self, 'manifests',
56 gitdir = gd, 49 gitdir = os.path.join(repodir, 'manifests.git'),
57 worktree = wt) 50 worktree = os.path.join(repodir, 'manifests'))
58 51
59 self._Unload() 52 self._Unload()
60 53