283838 scripts/wd-functions.sh: fix get_branch_name() in worktree

Authored and Committed by Shung-Hsi Yu 2 years ago
    scripts/wd-functions.sh: fix get_branch_name() in worktree
    
    Instead of using a hard-coded path for the git directory, use git
    rev-parse with --git-dir flag, introduced since 0.99.7, to find the git
    directory so branch name can be correctly detected while in git
    worktrees.
    
        
file modified
+1 -1