Get prev commit revision right.

Before the fix:

```
$ git rev-list --max-count=1 branch
```

This will always throw an error. The fixed version is:

```
$ git rev-list --max-count=1 refs/heads/branch
```

Related issue: https://github.com/davisp/ghp-import/issues/18