mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 15:36:21 -04:00
git summary: use more common way to cd to top level directory
This commit is contained in:
parent
9e2a625b29
commit
227ef26e7f
|
|
@ -1,9 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
SUBDIRECTORY_OK=Yes
|
||||
source "$(git --exec-path)/git-sh-setup"
|
||||
cd_to_toplevel
|
||||
cd "$(git root)" || { echo "Can't cd to top level directory";exit 1; }
|
||||
|
||||
commit=""
|
||||
test $# -ne 0 && commit=$@
|
||||
|
|
|
|||
Loading…
Reference in a new issue