Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-07-24 13:03:47 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-07-24 13:03:47 +0200
commitc661a2b1b107aac846622d089bfeead677b32c84 (patch)
treea2e6661044a180f4998316775a11e53a0153e418
parentee7c6354a6acf9fc45897060be0981ba9e2aa049 (diff)
parent629ccf301427524f1adcce172e72cbf17d59d140 (diff)
Merge branch 'scripts' into packaging
-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