Commit Graph

16 Commits

Author SHA1 Message Date
Steve Streeting
21596a0e17 Test for ScanPreviousVersions 2015-08-24 15:15:16 +01:00
Steve Streeting
abf0f93441 Sort refs by name to be able to assert.Equal() consistently
Git may report in different orders depending on circumstances
2015-08-21 16:53:16 +01:00
Steve Streeting
cdafe05dce Refine errors 2015-08-21 16:42:03 +01:00
Steve Streeting
a60a9588a0 Fix Popd() 2015-08-21 16:41:33 +01:00
Steve Streeting
813837969e Make sure username/email are always supplied to commit so work in any env 2015-08-21 16:33:08 +01:00
Steve Streeting
0740f59d9d More error checking on commitAtDate 2015-08-21 16:09:17 +01:00
Steve Streeting
dadeb342c2 First pass of fetching recent commits 2015-08-21 15:19:16 +01:00
Steve Streeting
408928642e Allow test repos to have remotes which are automatically cleaned 2015-08-20 12:03:07 +01:00
Steve Streeting
7e6e2979dd Store *testing.T in test.Repo to reduce number of args needed to funcs 2015-08-20 10:46:08 +01:00
Steve Streeting
3dd601710c Simplify the test types a bit, already in the test package 2015-08-19 17:33:58 +01:00
Steve Streeting
11ab2c179f Add Pushd/Popd functions to TestRepo for convenience 2015-08-19 16:45:21 +01:00
Steve Streeting
8202a785e0 Support creating tags on test commits 2015-08-19 13:02:58 +01:00
Steve Streeting
241152df3d Fix placeholder data reader, need to return io.EOF at end of stream 2015-08-19 13:02:37 +01:00
Steve Streeting
895bad2380 When cleaning up, make sure cwd isn't inside folder to be deleted 2015-08-18 18:07:14 +01:00
Steve Streeting
d8cad4e58a Attach setup func to TestRepo instance, be safe with cwd 2015-08-18 18:01:26 +01:00
Steve Streeting
02c5c645fb Working on some "go test" utilities to create non-trivial repos for granular tests 2015-08-18 16:26:38 +01:00