13 lines
231 B
Bash
Executable file
13 lines
231 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
IFS=$'\n'
|
|
|
|
cd ~git
|
|
source git-shell-commands/util.sh
|
|
arguments 2 "$#"
|
|
|
|
origin="$(repo_name_existing "$1")"
|
|
dest="$(repo_name_new "$2")"
|
|
|
|
ln -T -s "$origin" "$dest"
|
|
printf '%s\n' "'$dest' -> '$origin'"
|