From 854caf0228b04bf81a09cd2a40128a294465f7b0 Mon Sep 17 00:00:00 2001 From: NunzioFornitto Date: Wed, 29 Jul 2026 17:49:17 +0200 Subject: [PATCH] refactor(git): move gbcopy to Functions section, update git-dir check and sync README --- plugins/git/git.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index e01e66713..9a8727d2c 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -51,7 +51,7 @@ function git_main_branch() { function gbcopy() { # Check if we are in a Git repository - command git rev-parse --is-inside-work-tree &>/dev/null || return + command git rev-parse --git-dir &>/dev/null || return local branch branch="$(command git symbolic-ref --short -q HEAD)" || return