summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2012-10-09 13:46:10 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-10-09 13:46:10 -0700
commit25f17682ca4ecd8acc887462d4bebc7c429cf110 (patch)
tree8416b3cc2ac42cbf43452da418121f0b056ca878 /subcmds/init.py
parente3b1c45aebed329cbc9ad172b1d8e812cf208117 (diff)
parent297e7c6ee69077cb063b90a32d22b0b812a95841 (diff)
downloadgit-repo-25f17682ca4ecd8acc887462d4bebc7c429cf110.tar.gz
Merge "Expand ~ to user's home directory for --reference"
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index 9a4f7118..9a9317e4 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -317,6 +317,10 @@ to update the working directory files.
317 317
318 def Execute(self, opt, args): 318 def Execute(self, opt, args):
319 git_require(MIN_GIT_VERSION, fail=True) 319 git_require(MIN_GIT_VERSION, fail=True)
320
321 if opt.reference:
322 opt.reference = os.path.expanduser(opt.reference)
323
320 self._SyncManifest(opt) 324 self._SyncManifest(opt)
321 self._LinkManifest(opt.manifest_name) 325 self._LinkManifest(opt.manifest_name)
322 326