meson: strip branch name when uninstalled
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Fri, 31 Aug 2018 11:31:24 +0000 (13:31 +0200)
committerPhilippe Normand <philn@igalia.com>
Fri, 31 Aug 2018 12:17:42 +0000 (13:17 +0100)
Remove ending newlines characters on branch's name.

https://bugzilla.gnome.org/show_bug.cgi?id=796989

gst-uninstalled.py

index 8e2edf2..d4509ce 100755 (executable)
@@ -212,7 +212,8 @@ if __name__ == "__main__":
         exit(1)
 
     # The following incantation will retrieve the current branch name.
-    gst_version = git("rev-parse", "--symbolic-full-name", "--abbrev-ref", "HEAD", repository_path=options.srcdir)
+    gst_version = git("rev-parse", "--symbolic-full-name", "--abbrev-ref", "HEAD",
+                      repository_path=options.srcdir).strip('\n')
 
     if not args:
         if os.name is 'nt':