Skip to content

Commit

Permalink
Makefile: Older versions of git don't have -C option
Browse files Browse the repository at this point in the history
The older versions of git don't have a -C option. You can see this
on Travis:

Unknown option: -C

Closes cockpit-project#3286
Reviewed-by: Marius Vollmer <[email protected]>
  • Loading branch information
stefwalter authored and mvollmer committed Dec 7, 2015
1 parent 487aeca commit 5e88faa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ install-data-local:: install-doc-local

dist-hook: dist-doc-hook
echo $(VERSION) > $(distdir)/.tarball
-(git -C $(srcdir) ls-tree HEAD --name-only -r bower_components/ || echo bower_components/ ) | tar -C $(srcdir) -cf - -T - | tar -C $(distdir) -xvf -
-(cd $(srcdir) git ls-tree HEAD --name-only -r bower_components/ || echo bower_components/ ) | tar -C $(srcdir) -cf - -T - | tar -C $(distdir) -xvf -

distcheck-hook: dist-doc-hook
$(srcdir)/tools/check-dist $(distdir)
Expand Down
3 changes: 2 additions & 1 deletion tools/git-version-gen
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ fi

generate() {
if [ -d $BASE/../.git ]; then
git -C $BASE/.. describe | sed 's/-[0-9]\+-g.*/.x/'
cd $BASE/..
git describe | sed 's/-[0-9]\+-g.*/.x/'
else
cat $1
fi
Expand Down

0 comments on commit 5e88faa

Please sign in to comment.