Use git-am to apply monado patches

This commit is contained in:
Patrick Nicolas
2024-09-03 21:06:29 +02:00
parent 3f25fed6df
commit 8328fe13c7
4 changed files with 37 additions and 2 deletions
+8
View File
@@ -1,4 +1,12 @@
#!/bin/sh
if [ -d ".git" ] ; then
git config user.email > /dev/null || git config user.email "git-am@invalid"
git config user.name > /dev/null || git config user.name "no name"
git checkout .
exec git am "$@"/*
fi
# There is no reliable way to apply a patch and succeed if it was
# already applied. Just ignore errors...
for f in "$@"/* ; do