summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2017-06-29 14:00:24 -0300
committerdrebs <drebs@leap.se>2017-06-29 14:00:24 -0300
commitb3ac907618ca179ecba12b84fe6c0edeef305e80 (patch)
tree0cff702c2c918e0d98353a5a8dc5dede90a82bff
parent50d6eebcef8d23459fd8865d155cee0751317df6 (diff)
[pkg] avoid adding upstream repo twice
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 7deba684..9387f843 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -25,7 +25,8 @@ before_script:
stage: package
image: "0xacab.org:4567/leap/gitlab-buildpackage:build_${DIST}_${ARCH}"
script:
- - "git remote add upstream https://0xacab.org/leap/soledad; git fetch --tags upstream"
+ - "if [ -z \"$(git remote | grep upstream)\" ]; then git remote add upstream https://0xacab.org/leap/soledad; fi"
+ - "git fetch --tags upstream"
- "pwd; git describe"
- build-build-package
# Test the package with lintian