Home Home > GIT Browse > SLE15
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-07-17 08:02:47 +0200
committerTakashi Iwai <tiwai@suse.de>2019-07-17 08:02:47 +0200
commit3131f46c4f3630a1338a040d939bae36650c7f67 (patch)
treecf87bcf2316f8a1f17c29475575fd31fe6cef504
parentf9796f8e4bc3fcfd3c95b6aa341f0a29e0479cba (diff)
parentb98fb06811e9a46c4e485ae481217e77e26d3524 (diff)
Merge branch 'scripts' into SLE15
-rwxr-xr-xscripts/tar-up.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/tar-up.sh b/scripts/tar-up.sh
index 9e5ece204b..aaae2d176e 100755
--- a/scripts/tar-up.sh
+++ b/scripts/tar-up.sh
@@ -225,9 +225,12 @@ elif $using_git; then
# users of the rpm packages.
# FIXME: the remote might have a different name than "origin" or there
# might be no remote at all.
- if git cat-file -e origin/scripts 2>/dev/null; then
- exclude[${#exclude[@]}]=^origin/scripts
- fi
+ for remote in $(git remote)
+ do
+ if git cat-file -e ${remote}/scripts 2>/dev/null; then
+ exclude[${#exclude[@]}]=^${remote}/scripts
+ fi
+ done
if git cat-file -e scripts 2>/dev/null; then
exclude[${#exclude[@]}]=^scripts
fi