summaryrefslogtreecommitdiff
path: root/gitremotes
diff options
context:
space:
mode:
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-30 03:02:15 -0400
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>2009-08-30 03:02:15 -0400
commitc36d2fa896e9ea42c0b6b0135ba04b4f4f60950f (patch)
tree22f1314d8e974c73bde4970c97d497628f2a1465 /gitremotes
parent5e94e973eeb4ba75d9c37bd801278f686f0977c3 (diff)
parent517432273b96fc9e6bad9b7667ef6d1b04c699ee (diff)
Merge branch 'master' of git://github.com/joeyh/ikiwiki
Diffstat (limited to 'gitremotes')
-rwxr-xr-xgitremotes10
1 files changed, 8 insertions, 2 deletions
diff --git a/gitremotes b/gitremotes
index 91bf2fe84..e2468814b 100755
--- a/gitremotes
+++ b/gitremotes
@@ -15,13 +15,19 @@ while (<IN>) {
# check configured url to deal with it changing
my $info=`git remote show -n $remote`;
my ($oldurl)=$info=~/URL: (.*)/m;
+ my $r;
if ($oldurl ne $url) {
system("git remote rm $remote 2>/dev/null");
- $error |= system("git", "remote", "add", "-f", $remote, $url);
+ $r = system("git", "remote", "add", "-f", $remote, $url)
}
else {
- $error |= system("git", "fetch", $remote);
+ $r = system("git", "fetch", "--no-tag", $remote);
}
+
+ if ($r != 0) {
+ print "$remote failed\n";
+ }
+ $error |= $r;
}
}
close IN;