The current dim code will create the tag using a local branch as an
argument, but while we make sure to fetch the branch first in the callers,
we don't actually make sure that any local change have been pushed.

Make sure it's the case before creating the tag.

Signed-off-by: Maxime Ripard <[email protected]>

---

Changes from v1:
  - Switch to git_push
---
 dim | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dim b/dim
index 0b1cd042345f..b581f246c5cc 100755
--- a/dim
+++ b/dim
@@ -1962,6 +1962,7 @@ function tag_branch
        branch=$2
        remote=$(branch_to_remote $branch)
 
+       git_push $remote $branch
        tag_summary $branch | $DRY git tag -F- $tag "$branch@{upstream}"
        $DRY git tag -a $DIM_GPG_KEYID -f $tag
        git_push $remote $tag
-- 
2.23.0

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

Reply via email to