Commits

ZyX_I committed cf3d1e5

@%aurum/drivers/git: Fixed forced branch delete

  • Participants
  • Parent commits 26325d0

Comments (0)

Files changed (1)

autoload/aurum/drivers/git.vim

     endif
     let args=['--', a:label]
     let kwargs={}
-    if a:force
-        let kwargs.force=1
-    endif
     if a:rev is 0
-        let kwargs.d=1
+        " No need to forced tag delete
+        if a:force && a:type is# 'branch'
+            let kwargs.D=1
+        else
+            let kwargs.d=1
+        endif
     else
+        if a:force
+            let kwargs.force=1
+        endif
         let args+=[a:rev]
     endif
     return s:F.gitm(a:repo, a:type, args, kwargs, 0,