aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/scripts/git-set-desc11
1 files changed, 2 insertions, 9 deletions
diff --git a/scripts/scripts/git-set-desc b/scripts/scripts/git-set-desc
index 08568fe..eee8830 100755
--- a/scripts/scripts/git-set-desc
+++ b/scripts/scripts/git-set-desc
@@ -1,11 +1,4 @@
1#! /usr/bin/env bash 1#! /usr/bin/env bash
2 2
3set_desc() { 3remote=$(git remote get-url --push origin)
4 # $1 - desc 4scp .git/description "$remote/description"
5 # $2 - repo name
6 [[ -d "$2" ]] && echo "$1" > "$2/description" || echo "$2: remote not found"
7}
8
9repo=${1:-$(basename $(pwd))};
10desc=$(cat "./.git/description")
11ssh git@ferrn "$(typeset -f set_desc); set_desc \"$desc\" \"$repo\""