--- a/docs/prompt-session-git.sh Thu Sep 04 03:33:16 2014 +0900
+++ b/docs/prompt-session-git.sh Thu Sep 04 14:26:58 2014 +0900
# paste this into an interactive shell
-cd /tmp/ && git init gitrepo && cd gitrepo/
+cd "$(mktemp -d)" && git init gitrepo && cd gitrepo
+git checkout -q HEAD@{1}
echo 's' >> foo && git commit -a -m 's'
git merge master --strategy=ours --no-commit
--- a/docs/prompt-session-hg.sh Thu Sep 04 03:33:16 2014 +0900
+++ b/docs/prompt-session-hg.sh Thu Sep 04 14:26:58 2014 +0900
# paste this into an interactive shell
-cd /tmp/ && hg init hgrepo && cd hgrepo/
+cd "$(mktemp -d)" && hg init hgrepo && cd hgrepo
echo 'a' > foo && hg add foo
echo 'b' >> foo && hg ci -m 'b'