mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
Makefile.am: Only auto-configure Git when available.
* Makefile.am (.git/hooks/pre-push): Only run recipe if the '.git' directory exists. Make it silent. (.git/config): Likewise, and also check if the 'git' command is available. Reported-by: Brian Cully <bjc@spork.org>
This commit is contained in:
parent
8af2865896
commit
ed0f0204b2
1 changed files with 6 additions and 2 deletions
|
@ -1115,10 +1115,14 @@ cuirass-jobs: $(GOBJECTS)
|
|||
|
||||
# Git auto-configuration.
|
||||
.git/hooks/pre-push: etc/git/pre-push
|
||||
-cp etc/git/pre-push .git/hooks/pre-push
|
||||
$(AM_V_at)if test -d .git; then \
|
||||
cp etc/git/pre-push .git/hooks/pre-push; \
|
||||
fi
|
||||
|
||||
.git/config: etc/git/gitconfig
|
||||
-git config include.path ../etc/git/gitconfig
|
||||
$(AM_V_at)if command -v git >/dev/null && test -d .git; then \
|
||||
git config include.path ../etc/git/gitconfig; \
|
||||
fi
|
||||
|
||||
nodist_noinst_DATA = .git/hooks/pre-push .git/config
|
||||
|
||||
|
|
Loading…
Reference in a new issue