Skip to content

Commit 6dc1516

Browse files
committed
git-synchronizer: allow read-only URLs
Our forks of upstream may have their own branches but they should not have diverging branches. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 4b2d40d commit 6dc1516

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

git-synchronizer.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ do
249249
fi
250250
done)
251251
test -z "$pushopts" && continue
252+
case "${url#*=}" in
253+
git://*)
254+
case "$pushopts" in
255+
*+*)
256+
add_error "Diverging $url: ${pushopts#*+}"
257+
;;
258+
esac
259+
continue
260+
;;
261+
esac
252262
git push $name $pushopts ||
253263
add_error "Could not push to $url"
254264
done

0 commit comments

Comments
 (0)