Commit Graph
4 Commits
Author SHA1 Message Date
Andrew Scott ec53035b13 Handle spaces in path when shortening 2016-08-11 21:28:31 +01:00
Andrew Scott d720b725e8 Use git's show-toplevel to get top level directory 2016-06-14 11:58:33 +01:00
Andrew Scott c3019d11ef Handle shorting path when in the .git directory
`git rev-parse --git-dir` returns just `.` when in the top level of
a`.git` directory. This would cause a problem when extracting the
package_path. Closes #271
2016-06-12 14:52:10 +01:00
Andrew Scott 19ceb08372 Only match first name in package.json
This ensures that the following package.json extract would just give the
prompt "foo" rather than "foo\nbar".

    {
      "name": "foo",
      "author":
      {
          "name": "bar",
      }
    }
2016-06-12 14:50:22 +01:00