Skip to content

Instantly share code, notes, and snippets.

@jbranchaud
Created November 9, 2011 13:23
Show Gist options
  • Save jbranchaud/1351406 to your computer and use it in GitHub Desktop.
Save jbranchaud/1351406 to your computer and use it in GitHub Desktop.
Get the revision number for the HEAD of the repository
#!/bin/bash
# This script must be run from within the working copy of the repository
# Get the revision number for the HEAD of the repository
svn info -r HEAD | awk '/^Revision:/ {print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment