unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#63346] [PATCH] Makefile.am: Use --add flag to "git config".
@ 2023-05-07 10:43 Mekeor Melire
  2023-05-07 13:20 ` bug#63346: " Maxim Cournoyer
  0 siblings, 1 reply; 2+ messages in thread
From: Mekeor Melire @ 2023-05-07 10:43 UTC (permalink / raw)
  To: 63346

Without the "--add" flag to "git config include.path ...", the command fails
if the user already has a configuration entry of "include.path".
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 8af69f88ac..13718e4353 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1121,7 +1121,7 @@ cuirass-jobs: $(GOBJECTS)
 
 .git/config: etc/git/gitconfig
 	$(AM_V_at)if command -v git >/dev/null && test -d .git; then \
-	git config include.path ../etc/git/gitconfig; \
+	git config --add include.path ../etc/git/gitconfig; \
 	fi
 
 nodist_noinst_DATA = .git/hooks/pre-push .git/config

base-commit: fccb48d2cec6bcf47647c82914f31e2dff617f9c
-- 
2.39.2






^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#63346: [PATCH] Makefile.am: Use --add flag to "git config".
  2023-05-07 10:43 [bug#63346] [PATCH] Makefile.am: Use --add flag to "git config" Mekeor Melire
@ 2023-05-07 13:20 ` Maxim Cournoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Maxim Cournoyer @ 2023-05-07 13:20 UTC (permalink / raw)
  To: Mekeor Melire; +Cc: 63346-done

Hi,

Mekeor Melire <mekeor@posteo.de> writes:

> Without the "--add" flag to "git config include.path ...", the command fails
> if the user already has a configuration entry of "include.path".
> ---
>  Makefile.am | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Makefile.am b/Makefile.am
> index 8af69f88ac..13718e4353 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -1121,7 +1121,7 @@ cuirass-jobs: $(GOBJECTS)
>  
>  .git/config: etc/git/gitconfig
>  	$(AM_V_at)if command -v git >/dev/null && test -d .git; then \
> -	git config include.path ../etc/git/gitconfig; \
> +	git config --add include.path ../etc/git/gitconfig; \
>  	fi

Installed, thank you!

-- 
Thanks,
Maxim




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-07 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-07 10:43 [bug#63346] [PATCH] Makefile.am: Use --add flag to "git config" Mekeor Melire
2023-05-07 13:20 ` bug#63346: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).