From 63a605fe09e1539a6d57c6232d7e7389fb9483f4 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 4 Oct 2020 19:48:30 +0530 Subject: update set-desc cmd --- scripts/scripts/git-set-desc | 11 ++--------- 1 file 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 @@ #! /usr/bin/env bash -set_desc() { - # $1 - desc - # $2 - repo name - [[ -d "$2" ]] && echo "$1" > "$2/description" || echo "$2: remote not found" -} - -repo=${1:-$(basename $(pwd))}; -desc=$(cat "./.git/description") -ssh git@ferrn "$(typeset -f set_desc); set_desc \"$desc\" \"$repo\"" +remote=$(git remote get-url --push origin) +scp .git/description "$remote/description" -- cgit v1.2.3