Created
July 21, 2011 21:55
-
-
Save blt/1098323 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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