mirror of
https://gitea.com/gitea/tea.git
synced 2026-10-26 11:01:25 +01:00
fix: address verified review findings (branches-checkout-status-1)
Signed-off-by: bircni <bircni@icloud.com>
This commit is contained in:
27 files changed
+281
-65
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ func (a *application) gitIn(ctx context.Context, dir string, args ...string) (st
|
||||
|
||||
// currentBranch names the checked-out branch without writing Git diagnostics.
|
||||
func (a *application) currentBranch(ctx context.Context) (string, error) {
|
||||
return a.gitProbe().Output(ctx, a.options.cwd, false, "symbolic-ref", "--short", "HEAD")
|
||||
return git.CurrentBranch(ctx, a.gitProbe(), a.options.cwd)
|
||||
}
|
||||
|
||||
// gitProbe runs exploratory Git commands whose failures are expected, without Git's diagnostics.
|
||||
|
||||
Reference in new issue
Block a user