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)