[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [bug #50462] Gnash shows weird version information when b

From: Nutchanon Wetchasit
Subject: [Gnash-commit] [bug #50462] Gnash shows weird version information when built from detached-HEAD Git repository
Date: Sun, 5 Mar 2017 11:34:23 -0500 (EST)
User-agent: Opera/9.80 (Windows NT 5.1; U; en) Presto/2.10.229 Version/11.64

Follow-up Comment #2, bug #50462 (project gnash):

*Previous post's markup is messed up a bit, here is a repost:*

This oddity seems to boil down to how Gnash build script extracts branch
information from the repository...

nick="`cd $(top_srcdir) ; $(GIT) branch | grep '^\*' | cut -d ' ' -f 2`"; \

Running `git branch` in the repository after `git checkout 144e082` shows:

$ git branch
* (no branch)

Since what branch retrieval command did is finding line beginning with "*" and
use its 2nd column (separated by space). So "(no branch)" became "(no"
displayed in the version string:

$ git branch | grep '^\*' | cut -d ' ' -f 2

If a more modern version of git (e.g. 2.11.1) is used, output would be even
more weird:

$ git --version
git version 2.11.1
$ git branch
* (HEAD detached at 144e08270)
$ git branch | grep '^\*' | cut -d ' ' -f 2

Maybe a fix would involve changing the source of branch information from
porcelain `git branch` (which is prone to format changes) to something
low-level like `git symbolic-ref` (which is recommended for scripting).

Gnash: 0.8.11dev (git 144e082 22-Feb-2017)
Git: 1: (debian)
Git: 2.11.1 (source)
System: Debian GNU/Linux 7.0 Wheezy i386


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]