Ubuntu Pastebin

Paste from smoser at Mon, 19 Sep 2016 17:33:16 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
diff --git a/git-dsc-commit b/git-dsc-commit
index b1079e8..90aee37 100755
--- a/git-dsc-commit
+++ b/git-dsc-commit
@@ -814,8 +824,9 @@ def main():
     parent_overrides = parse_parentfile(pkgname, args.parentfile)
 
     proto = "git" if no_push else "git+ssh"
-    remote_url = ('%s://%s@git.launchpad.net/~%s/ubuntu/+source/%s' %
-                  (proto, user, owner, pkgname))
+    user_at = user + "@" if proto == "git+ssh" else ""
+    remote_url = ('%s://%sgit.launchpad.net/~%s/ubuntu/+source/%s' %
+                  (proto, user_at, owner, pkgname))
 
     local_repo = USDGitRepository(pkgname,
                                   args.directory,
Download as text