Revert git clone
to its original functionality
All checks were successful
/ check (push) Successful in 55s
All checks were successful
/ check (push) Successful in 55s
This commit is contained in:
parent
6028198c72
commit
40d63d1323
1 changed files with 0 additions and 16 deletions
|
@ -18,22 +18,6 @@
|
||||||
|
|
||||||
git() {
|
git() {
|
||||||
case "$1" in
|
case "$1" in
|
||||||
clone)
|
|
||||||
shift
|
|
||||||
|
|
||||||
local repo_url="$1"
|
|
||||||
local repo_path="''${2:-}"
|
|
||||||
|
|
||||||
if [ -n "$TARGET_DIR" ]; then
|
|
||||||
command git clone "$repo_url" "$repo_path"
|
|
||||||
else
|
|
||||||
command git clone "$repo_url"
|
|
||||||
repo_path=$(basename "$repo_url" .git)
|
|
||||||
fi
|
|
||||||
|
|
||||||
${pkgs.tmux-sessionizer}/bin/tmux-sessionizer "$repo_path"
|
|
||||||
;;
|
|
||||||
|
|
||||||
root)
|
root)
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue