diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-11-15 22:03:34 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2012-11-15 22:03:34 -0200 |
commit | af0617e9478512e64b1681d6e1da3baeb3f72216 (patch) | |
tree | 9861fb74dc5de2eac3edf9207e0a22791fa05c85 /libre/parabolaweb-utils/parabolaweb-download | |
parent | af1438a26ac6cbdb10b9e780c1bc69c459963b78 (diff) | |
parent | 9e33443ecf9575280008587e78750259e0519335 (diff) | |
download | abslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.tar.gz abslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.tar.bz2 abslibre-af0617e9478512e64b1681d6e1da3baeb3f72216.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre/parabolaweb-utils/parabolaweb-download')
-rw-r--r-- | libre/parabolaweb-utils/parabolaweb-download | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libre/parabolaweb-utils/parabolaweb-download b/libre/parabolaweb-utils/parabolaweb-download index 823a18811..e124295d4 100644 --- a/libre/parabolaweb-utils/parabolaweb-download +++ b/libre/parabolaweb-utils/parabolaweb-download @@ -4,8 +4,8 @@ . /usr/bin/libremessages dir=$WEBDIR -repo=git://parabolagnulinux.org/parabolaweb.git -ref=master +repo=$GITURL +ref=$GITREF cd_safe() { if ! cd "$1"; then @@ -26,11 +26,11 @@ download_git() { else cd_safe "$dir" # Make sure we are fetching the right repo - # if [[ "$repo" != "$(git config --get remote.origin.url)" ]] ; then - # error "$(gettext "%s is not a clone of %s")" "$dir" "$repo" - # plain "$(gettext "Aborting...")" - # exit 1 - # fi + if [[ "$repo" != "$(git config --get remote.origin.url)" ]] ; then + error "$(gettext "%s is not a clone of %s")" "$dir" "$repo" + plain "$(gettext "Aborting...")" + exit 1 + fi msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" if ! git pull origin "$ref"; then # only warn on failure to allow offline builds |