build: Avoid git config 'include' duplicates.

* Makefile.am (.git/config): Invoke git config --replace-all with a
value-pattern instead of --add.

Change-Id: Id6e19b15d3772105128eb9b48d0f4e039ae3d988
Reported-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
This commit is contained in:
Maxim Cournoyer 2023-10-22 18:00:32 -04:00
parent 4cf4dcb8b3
commit 75aba5a746
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -1167,7 +1167,8 @@ cuirass-jobs: $(GOBJECTS)
.git/config: etc/git/gitconfig
$(AM_V_at)if command -v git >/dev/null && test -d .git; then \
git config --add include.path ../etc/git/gitconfig; \
git config --fixed-value --replace-all include.path \
../etc/git/gitconfig ../etc/git/gitconfig;
fi
COMMIT_MSG_MAGIC = VGhpcyBpcyB0aGUgY29tbWl0LW1zZyBob29rIG9mIEd1aXg=