mojombo/grit — pull request #140 by sbryant (2012-09-02 20:34:20+00:00)
Title: Fix an edge case in rev_parse.

## The Problem
Calling #rev_parse with a revision to parse that includes a ref and a path that contains `..` in the filename.
Example `HEAD:path/to/file/with/two..dots_in_the_file_name`

This will attempt to split and then rev_parse on the two parts. At best we'll get an error and git will tell us that the path doesn't exist. At worst we'll run into a situation where that fille will exist and we will be returning bad information.

## The Fix
Just don't split on revision specifiers that contain `:`.