]> source.dussan.org Git - jgit.git/commit
DeleteBranchCommand: update config only at the end 20/204920/1
authorThomas Wolf <twolf@apache.org>
Sun, 8 Oct 2023 19:50:34 +0000 (21:50 +0200)
committerThomas Wolf <twolf@apache.org>
Sat, 14 Oct 2023 21:33:11 +0000 (23:33 +0200)
commit621685d3ca5fbaba37a8fc79b347644b3e4425c0
treee8d97f4539f6c16ed19b0cdbb2e0bc38a9c2e4dc
parentecf94d1595c23b410d460e05a0d0bba60a443cd7
DeleteBranchCommand: update config only at the end

When multiple branches were to be removed, the git config was updated
after each and every branch. Newly do so only once at the end, after all
branches have been deleted.

Because there may be an exception after some branches have already been
deleted, take care to update the config even if an exception is thrown.

Bug: 451508
Change-Id: I645be8a1a59a1476d421e46933c3f7cbd0639fec
Signed-off-by: Thomas Wolf <twolf@apache.org>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/api/DeleteBranchCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java