diff options
author | Shawn O. Pearce <sop@google.com> | 2009-05-29 18:38:17 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2009-05-29 18:45:20 -0700 |
commit | 3c8dea1f8d7c4257d080f9f34159cdb2fffb81e6 (patch) | |
tree | 2a5e48ce93bc913076034f88f8878e4bfffef4dc /subcmds/init.py | |
parent | 8ad8a0e61d919e76f521f3124c91bd46fbaa84e2 (diff) | |
download | git-repo-3c8dea1f8d7c4257d080f9f34159cdb2fffb81e6.tar.gz |
Change project.revision to revisionExpr and revisionId
The revisionExpr field now holds an expression from the manifest,
such as "refs/heads/master", while revisionId holds the current
commit-ish SHA-1 of the revisionExpr. Currently that is only
filled in if the manifest points directly to a SHA-1.
Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 0d0fcd06..5ba4d794 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -113,12 +113,12 @@ to update the working directory files. | |||
113 | m._InitGitDir() | 113 | m._InitGitDir() |
114 | 114 | ||
115 | if opt.manifest_branch: | 115 | if opt.manifest_branch: |
116 | m.revision = opt.manifest_branch | 116 | m.revisionExpr = opt.manifest_branch |
117 | else: | 117 | else: |
118 | m.revision = 'refs/heads/master' | 118 | m.revisionExpr = 'refs/heads/master' |
119 | else: | 119 | else: |
120 | if opt.manifest_branch: | 120 | if opt.manifest_branch: |
121 | m.revision = opt.manifest_branch | 121 | m.revisionExpr = opt.manifest_branch |
122 | else: | 122 | else: |
123 | m.PreSync() | 123 | m.PreSync() |
124 | 124 | ||