"`dirname \"$0\"`"/set-commit-date-recursive &&
pwd >> "`dirname \"$0\"`"/locate-all.list &&
-branch="`git rev-parse --abbrev-ref HEAD`"
+branch="`git rev-parse --abbrev-ref HEAD`" &&
+`git var GIT_EDITOR` .git/description &&
git config push.default current &&
exec git gc --aggressive
remote_dir="$2"
remote_name="$3"
-ssh "$remote_host" "cd $remote_dir && exec git init --bare git-scripts.git" &&
+ssh "$remote_host" "
+ cd $remote_dir &&
+ git init --bare git-scripts.git
+ cd git-scripts.git &&
+ echo Small git scripts >.git/description
+" &&
+
git remote add "$remote_name" "$remote_host:$remote_dir/git-scripts.git" &&
git push "$remote_name" master &&
-exec ssh "$remote_host" "cd $remote_dir && git clone git-scripts.git &&
- cd git-scripts.git/hooks &&
- exec ln -s ../../git-scripts/copy-scripts/post-update"
+
+exec ssh "$remote_host" "
+ cd $remote_dir &&
+ git clone git-scripts.git &&
+ cd git-scripts &&
+ echo Small git scripts >.git/description &&
+ cd ../git-scripts.git/hooks &&
+ exec ln -s ../../git-scripts/copy-scripts/post-update"
git config branch.$branch.merge refs/heads/$branch &&
git config push.default current &&
+`git var GIT_EDITOR` .git/description &&
exec git gc --aggressive