summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2023-05-28 22:21:58 -0500
committerCase Duckworth2023-05-28 22:21:58 -0500
commit3ee3ebdc58eb5d61834c0d8af59bac36260b58f4 (patch)
tree6b5a890c4df36166e77a55a9c8c828b26056af87
parentAdd makefile (diff)
downloadgit-init-remote-3ee3ebdc58eb5d61834c0d8af59bac36260b58f4.tar.gz
git-init-remote-3ee3ebdc58eb5d61834c0d8af59bac36260b58f4.zip
Just use ed.
-rwxr-xr-xgit-init-remote5
1 files changed, 2 insertions, 3 deletions
diff --git a/git-init-remote b/git-init-remote index 5a07bd5..a934c1f 100755 --- a/git-init-remote +++ b/git-init-remote
@@ -19,9 +19,8 @@ echo "ssh \"$GITREMOTE\" git init --bare \"$remote\""
19ssh "$GITREMOTE" git init --bare "$remote" 19ssh "$GITREMOTE" git init --bare "$remote"
20 20
21# Add a description 21# Add a description
22echo -n "Repo description: "; read 22echo "ssh \"$GITREMOTE\" ed \"$remote/description\""
23echo "ssh \"$GITREMOTE\" sh -c \"echo '$REPLY' > '$remote/description'\"" 23ssh "$GITREMOTE" ed "$remote/description"
24ssh "$GITREMOTE" sh -c "echo '$REPLY' > '$remote/description'"
25 24
26# Add post-update-hook 25# Add post-update-hook
27echo "scp post-update.hook \"$GITREMOTE:$remote/hooks/post-update\"" 26echo "scp post-update.hook \"$GITREMOTE:$remote/hooks/post-update\""