pull: Don't prepend "origin/" to branch names.
authorLudovic Courtès <ludo@gnu.org>
Mon, 14 Jan 2019 16:20:28 +0000 (17:20 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 14 Jan 2019 22:43:49 +0000 (23:43 +0100)
This is a followup to 37a6cdbf1b3503d3e60840a176318284b1f7ca25.

* guix/scripts/pull.scm (%options): Don't prepend "origin/" to branch
names.

guix/scripts/pull.scm

index 6d1914f..0339b14 100644 (file)
@@ -125,8 +125,7 @@ Download and deploy the latest version of Guix.\n"))
                    (alist-cons 'ref `(commit . ,arg) result)))
          (option '("branch") #t #f
                  (lambda (opt name arg result)
-                   (alist-cons 'ref `(branch . ,(string-append "origin/" arg))
-                               result)))
+                   (alist-cons 'ref `(branch . ,arg) result)))
          (option '(#\p "profile") #t #f
                  (lambda (opt name arg result)
                    (alist-cons 'profile (canonicalize-profile arg)