home
/
code
/
khome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use relative home paths
[khome.git]
/
home
/
bin
/
git-description
diff --git
a/home/bin/git-description
b/home/bin/git-description
index
710336b
..
14085bc
100755
(executable)
--- a/
home/bin/git-description
+++ b/
home/bin/git-description
@@
-7,7
+7,7
@@
cmd="$1"
remote="$2"
usage() {
remote="$2"
usage() {
- printf "Usage: %s
[push|pull]
REMOTE\n" "$exe"
+ printf "Usage: %s
(push|pull)
REMOTE\n" "$exe"
exit 1
}
exit 1
}
@@
-21,11
+21,12
@@
case "$remote" in
*) ;;
esac
*) ;;
esac
+file='description'
remote_url=$(git remote get-url "$remote")
remote_url=$(git remote get-url "$remote")
-remote_
file="${remote_url}/description
"
-local_
file='.git/description'
+remote_
path="${remote_url}/${file}
"
+local_
path=".git/${file}"
case "$cmd" in
case "$cmd" in
- push) scp "$local_
file" "$remote_file
";;
- pull) scp "$remote_
file" "$local_file
";;
+ push) scp "$local_
path" "$remote_path
";;
+ pull) scp "$remote_
path" "$local_path
";;
esac
esac
This page took
0.031004 seconds
and
4
git commands to generate.