GNOME Bugzilla – Bug 796989
gst-uninstalled: Add current branch in shell prompt
Last modified: 2018-08-31 12:19:05 UTC
It can be retrieved using git, there's no need for a --gst-version command-line switch.
Created attachment 373397 [details] [review] patch
Created attachment 373398 [details] [review] updated patch
Review of attachment 373398 [details] [review]: lgtm
Comment on attachment 373398 [details] [review] updated patch commit c78f0ef2229925f48b0ffabc410c2ca35dcb0df9 (HEAD -> master) Author: Philippe Normand <philn@igalia.com> Date: Fri Aug 17 15:33:09 2018 +0100 gst-uninstalled: Display current git branch name in the shell prompt This is really useful when using multiple git worktrees. https://bugzilla.gnome.org/show_bug.cgi?id=796989
I got a regression since I couldn't run an uninstalled shell because of this patch: vjaquez@miau:~/gst/gst-build/gstreamer-vaapi (797039)$ ninja -C ~/gst/gst-build/build uninstalled ninja: Entering directory `/home/vjaquez/gst/gst-build/build' [0/1] Running external command uninstalled. Traceback (most recent call last):
+ Trace 238683
env=get_subprocess_env(options, gst_version)))
with Popen(*popenargs, **kwargs) as p:
restore_signals, start_new_session)
raise child_exception_type(errno_num, err_msg, err_filename)
FAILED: meson-uninstalled /usr/bin/python3 /usr/bin/meson --internal commandrunner /opt/gst/gst-build /opt/gst/gst-build/build '' /usr/bin/python3 /usr/bin/meson /opt/gst/gst-build/gst-uninstalled.py --builddir=/opt/gst/gst-build/build - -srcdir=/opt/gst/gst-build --gst-version=master ninja: build stopped: subcommand failed. meson 0.47.2
Created attachment 373513 [details] [review] follow-up
Created attachment 373514 [details] [review] meson: strip branch name when uninstalled Remove ending newlines characters on branch's name.
Review of attachment 373514 [details] [review]: OK
Review of attachment 373513 [details] [review]: OK
commit 13131122b7d2de1e55d305bbc494874a564dbc48 (HEAD -> master) Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Date: Fri Aug 31 13:31:24 2018 +0200 meson: strip branch name when uninstalled Remove ending newlines characters on branch's name. https://bugzilla.gnome.org/show_bug.cgi?id=796989 commit 51759df370a608c795d8277ec69bfadfae623992 Author: Philippe Normand <philn@igalia.com> Date: Fri Aug 31 11:44:17 2018 +0100 meson: Follow-up fix for ninja uninstalled The --gst-version was removed in c78f0ef2229925f48b0ffabc410c2ca35dcb0df9 so remove it from the meson.build file as well. https://bugzilla.gnome.org/show_bug.cgi?id=796989