Using --dry-run for git push on a non-existant branch (since the command
above doesn't actually create the branch) fails with:

error: src refspec topic/dim_test does not match any.
error: failed to push some refs to <remote>

So instead of using --dry-run for git push, just echo the command.

Signed-off-by: Sean Paul <[email protected]>
---
 dim | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dim b/dim
index 7d8787d22c8b..171557774ea4 100755
--- a/dim
+++ b/dim
@@ -1277,7 +1277,8 @@ function dim_create_branch
        fi
 
        $DRY git branch $branch $start
-       git push $DRY_RUN $remote +$branch --set-upstream
+       $DRY git push $remote +$branch --set-upstream
+
 
        cd $DIM_PREFIX/drm-rerere
        $DRY sed -i "s/^\() # DO NOT CHANGE THIS 
LINE\)$/\t\"$repo\t\t${branch//\//\\\/}\"\n\1/" $dim_integration_config
-- 
Sean Paul, Software Engineer, Google / Chromium OS

_______________________________________________
dim-tools mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dim-tools

Reply via email to