Skip to content

Commit db30f6f

Browse files
committed
git-synchronizer: really look for the push URL when testing it
We want to be a bit nice to read-only repositories which means that we check for forced forwards for git:// URLs. But we should really make certain that we got the push URL, not the fetch URL when we do that. So let's do that. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ad6ff61 commit db30f6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-synchronizer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ do
250250
fi
251251
done)
252252
test -z "$pushopts" && continue
253-
case "${url#*=}" in
253+
case "$(git config "remote.$name.pushurl"; git config "remote.$name.url")" in
254254
git://*)
255255
case "$pushopts" in
256256
*+*)

0 commit comments

Comments
 (0)