On Fri, Aug 8, 2014 at 3:23 PM, <d...@apache.org> wrote: > Repository: cloudstack > Updated Branches: > refs/heads/4.4 e77da80e0 -> 00265fba3 > > > did git change it output format since this script was made? >
That's just ugly, to get branch why not do: git rev-parse --abbrev-ref HEAD I'll fix it on both master and 4.4. Cheers. > > Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo > Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/00265fba > Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/00265fba > Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/00265fba > > Branch: refs/heads/4.4 > Commit: 00265fba342efd54823c38f7a6abf7304b4c3a03 > Parents: e77da80 > Author: Daan Hoogland <d...@onecht.net> > Authored: Fri Aug 8 15:22:30 2014 +0200 > Committer: Daan Hoogland <d...@onecht.net> > Committed: Fri Aug 8 15:22:30 2014 +0200 > > ---------------------------------------------------------------------- > tools/appliance/build.sh | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > ---------------------------------------------------------------------- > > > > http://git-wip-us.apache.org/repos/asf/cloudstack/blob/00265fba/tools/appliance/build.sh > ---------------------------------------------------------------------- > diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh > index db5dcb0..13c9ca7 100755 > --- a/tools/appliance/build.sh > +++ b/tools/appliance/build.sh > @@ -31,7 +31,7 @@ build_date=`date +%Y-%m-%d` > branch= > > if [ -z "$branch" ] ; then > - branch=`git status | grep '# On branch' | awk '{print $4}'` > + branch=`git status | grep 'On branch' | awk '{print $3}'` > fi > > if [ -z "$branch" ] ; then > >