<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -7,12 +7,12 @@ projects.
 
 In a nutshell, this is what it does:
 
-  - Clones the latest version of the source (skipping all the history for
-    performance reasons) into a new local Git repository.
+  - Clones the latest version of the source (by default skipping the history
+    for performance reasons) into a new local Git repository.
 
   - Recreates empty directories (that git chooses to ignore), but that your
     app might need.
-    
+
   - Converts any svn:ignore Subversion properties into entries in your
     .git/info/exclude file.
 
@@ -46,7 +46,16 @@ Git repository that you'd like to create.
 
 For example:
 
-    $ git-me-up https://svn.mydomain.com/path/to/repo/project/trunk project
+    $ git-me-up http://svn.mydomain.com/repo/project/trunk project
+
+By default git-me-up will pull the latest version of your code from
+Subversion, ignoring all the history. If you want to override the revision
+pulled, set the REVISION environment variable, like this:
+
+    $ REVISION=123:HEAD http://svn.mydomain.com/repo/project/trunk project
+
+See the coverage of the -r option in the git-svn(1) man page for more examples
+of how to specify the revision.
 
 Give it a whirl. If you don't like it, delete your local directory. No harm
 done...</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -34,7 +34,7 @@ check_for_local_dir()
 get_latest_revision()
 {
     local repo=&quot;$1&quot;
-    svn log &quot;$repo&quot; | sed -n &quot;2p&quot; | cut -f 1 -d &quot; &quot;
+    svn log &quot;$repo&quot; | sed -n &quot;2p&quot; | cut -f 1 -d &quot; &quot; | sed &quot;s/^r//&quot;
 }
 
 ignore_generated_files()
@@ -53,11 +53,11 @@ clone_repository()
     local svn_repo=&quot;$1&quot;
     local local_repo=&quot;$2&quot;
     
-    log &quot;finding latest revision of $svn_repo&quot;
-    local revision=$(get_latest_revision &quot;$svn_repo&quot;)
+    [ -z &quot;$REVISION&quot; ] &amp;&amp; log &quot;finding latest revision of $svn_repo&quot;
+    local revision=${REVISION:-$(get_latest_revision &quot;$svn_repo&quot;)}
     
     log &quot;creating git repository in $(pwd)/$local_repo&quot;
-    local empty_dirs=$(git svn clone -$revision $svn_repo $local_repo 2&gt;&amp;1 | \
+    local empty_dirs=$(git svn clone -r $revision $svn_repo $local_repo 2&gt;&amp;1 | \
         grep &quot;W: +empty_dir:&quot; | cut -f 3 -d &quot; &quot;)
     local dir
     for dir in $empty_dirs; do</diff>
      <filename>git-me-up</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e302626d6375f0778ecd31dd29568a2b89edd774</id>
    </parent>
  </parents>
  <author>
    <name>Graham Ashton</name>
    <email>graham@doe.caribou.lan</email>
  </author>
  <url>http://github.com/gma/git-me-up/commit/aa67640100c03cd03381355e2427951501a2d01d</url>
  <id>aa67640100c03cd03381355e2427951501a2d01d</id>
  <committed-date>2008-04-29T15:20:03-07:00</committed-date>
  <authored-date>2008-04-29T15:20:03-07:00</authored-date>
  <message>Added support for specifying which revision(s) to clone.

Set the REVISION environment variable to a value suitable to passed through
to git-svn's -r switch.</message>
  <tree>8f3985003d28f1c987a41dbab4a62a4b16cb449f</tree>
  <committer>
    <name>Graham Ashton</name>
    <email>graham@doe.caribou.lan</email>
  </committer>
</commit>
