summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-01-14 13:55:05 +0100
committerErich Eckner <git@eckner.net>2020-01-14 13:55:05 +0100
commit81f86fba70bd03b77bdd878d29fa0c78c2fbd986 (patch)
tree9d5f552fa0e6a9c734a57e377b8ed562725f6bbd
parent964e140903114f7cc18cdbeedadf2e8849ec2d07 (diff)
downloadarchlinuxewe-81f86fba70bd03b77bdd878d29fa0c78c2fbd986.tar.xz
archPackagesUpdate: update non-bare git sources correctly, too
-rwxr-xr-xarchPackagesUpdate5
1 files changed, 4 insertions, 1 deletions
diff --git a/archPackagesUpdate b/archPackagesUpdate
index 2330c4f65..aaf585a0b 100755
--- a/archPackagesUpdate
+++ b/archPackagesUpdate
@@ -429,7 +429,10 @@ if ${aufRechenknecht}; then
maxErr=0
# update git sources
- find "${SRCDEST}" -mindepth 2 -maxdepth 2 -name 'HEAD' | \
+ find "${SRCDEST}" -mindepth 2 -maxdepth 2 \( \
+ -name 'HEAD' \
+ -o -name '.git' \
+ \) | \
sed 's|/[^/]*$||' | \
while read -r repo; do
git -C "${repo}" fetch --all -p