Fixup gb() function
This commit is contained in:
@@ -281,7 +281,10 @@ clip() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
gb() {
|
gb() {
|
||||||
while [[ ! -e ./.git ]] ; do
|
_superproject="$(git rev-parse --show-superproject-working-tree)"
|
||||||
cd ..
|
if [[ -n "${_superproject}" ]] ; then
|
||||||
done
|
builtin cd "${_superproject}"
|
||||||
|
else
|
||||||
|
builtin cd "$(git rev-parse --show-toplevel)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user