Skip to content

Commit 8530574

Browse files
committed
git-synchronizer: make sure that the push URL is kept up-to-date
If the Jenkins configuration changes, it needs to be picked up. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent e2cc424 commit 8530574

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

git-synchronizer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ fetch_from () {
6666
add_error "Could not add remote $name ($url)"
6767
return 1
6868
}
69-
test -n "$pushurl" &&
70-
test "$pushurl" != "$url" &&
71-
git config remote.$name.pushURL "$pushurl"
7269
fi
70+
test -n "$pushurl" &&
71+
test "$pushurl" != "$url" &&
72+
git config remote.$name.pushURL "$pushurl"
7373
previous="$(get_remote_branches $name)"
7474
git fetch --prune $name >&2 || {
7575
add_error "Could not fetch $name"

0 commit comments

Comments
 (0)