index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Mohammad Alsaleh <msal@i2pmail.org> | 2012-08-12 00:24:57 +0000 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-09-18 08:39:18 -0500 |
commit | c926c39b0481ec3db931fff1f86db0c49d78976b (patch) | |
tree | 8d51d4543dee345857ca3ca9f0588f4e32a22839 /scripts | |
parent | 34b52c9a60e43d84a8ea3930a19f8cbfa5815931 (diff) |
-rw-r--r-- | scripts/makepkg.sh.in | 8 |
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 6c0e821c..7ec523c8 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -404,8 +404,14 @@ download_git() { exit 1 fi elif (( ! HOLDVER )); then - msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" cd_safe "$dir" + # Make sure we are fetching the right repo + if [[ "$url" != "$(git config --get remote.origin.url)" ]] ; then + error "$(gettext "%s is not a clone of %s")" "$dir" "$url" + plain "$(gettext "Aborting...")" + exit 1 + fi + msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" if ! git fetch --all -p; then # only warn on failure to allow offline builds warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git" |