commit | 25f17682ca4ecd8acc887462d4bebc7c429cf110 | [log] [tgz] |
---|---|---|
author | Conley Owens <cco3@android.com> | Tue Oct 09 13:46:10 2012 -0700 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Oct 09 13:46:10 2012 -0700 |
tree | 8416b3cc2ac42cbf43452da418121f0b056ca878 | |
parent | e3b1c45aebed329cbc9ad172b1d8e812cf208117 [diff] | |
parent | 297e7c6ee69077cb063b90a32d22b0b812a95841 [diff] |
Merge "Expand ~ to user's home directory for --reference"
diff --git a/subcmds/init.py b/subcmds/init.py index 9a4f711..9a9317e 100644 --- a/subcmds/init.py +++ b/subcmds/init.py
@@ -317,6 +317,10 @@ def Execute(self, opt, args): git_require(MIN_GIT_VERSION, fail=True) + + if opt.reference: + opt.reference = os.path.expanduser(opt.reference) + self._SyncManifest(opt) self._LinkManifest(opt.manifest_name)