Move font-terminus from brew to brew-cask list
[khome.git] / home / bin / git-description
CommitLineData
de5b7b0b
SK
1#! /bin/sh
2
3set -e
4
5exe="$0"
6cmd="$1"
7remote="$2"
8
9usage() {
10 printf "Usage: %s [push|pull] REMOTE\n" "$exe"
11 exit 1
12}
13
14case "$cmd" in
15 push | pull) ;;
16 *) usage ;;
17esac
18
19case "$remote" in
20 '') usage ;;
21 *) ;;
22esac
23
24remote_url=$(git remote get-url "$remote")
25remote_file="${remote_url}/description"
26local_file='.git/description'
27
28case "$cmd" in
29 push) scp "$local_file" "$remote_file";;
30 pull) scp "$remote_file" "$local_file";;
31esac
This page took 0.047609 seconds and 4 git commands to generate.