Skip to content

Instantly share code, notes, and snippets.

@blt
Created July 21, 2011 21:55
Show Gist options
  • Save blt/1098323 to your computer and use it in GitHub Desktop.
Save blt/1098323 to your computer and use it in GitHub Desktop.
# If the commit is, say, "a156c0b4e8b6b81e9e5e1e0e4bbb66599301b17a" then
# the directory created is "a156c0b4e8b6b81e9e5e1e0e4bbb66599301b17a\102".
# Why is that?
commit = `git log -n 1 | grep -m 1 commit | awk '{print $2}'`
vhost_dir = commit
Dir.mkdir vhost_dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment