From 13131122b7d2de1e55d305bbc494874a564dbc48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 31 Aug 2018 13:31:24 +0200 Subject: [PATCH] meson: strip branch name when uninstalled Remove ending newlines characters on branch's name. https://bugzilla.gnome.org/show_bug.cgi?id=796989 --- gst-uninstalled.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-uninstalled.py b/gst-uninstalled.py index 8e2edf2..d4509ce 100755 --- a/gst-uninstalled.py +++ b/gst-uninstalled.py @@ -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': -- 2.7.4