rebase: use explicit "--" with checkout
[gitweb.git] / git-rebase.sh
index 6a7e5e0b1884358566544cc8cd0d94c941dac5fc..1f42fb75e74fde6e7fba8b7694b227700417c0c3 100755 (executable)
@@ -522,7 +522,7 @@ then
        if test -z "$force_rebase"
        then
                # Lazily switch to the target branch if needed...
-               test -z "$switch_to" || git checkout "$switch_to"
+               test -z "$switch_to" || git checkout "$switch_to" --
                say "Current branch $branch_name is up to date."
                exit 0
        else