@@ -6,7 +6,7 @@ var historyCountKnownSHA = 'fce88902e66c72b5b93e75bdb5ae717038b221f6';
66
77exports . message = function ( test ) {
88 test . expect ( 2 ) ;
9- git . Repo . open ( '.. /.git' , function ( error , repository ) {
9+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
1010 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
1111 var message = commit . message ( ) ;
1212 test . equals ( error , null , 'There should be no error' ) ;
@@ -18,7 +18,7 @@ exports.message = function(test) {
1818
1919exports . sha = function ( test ) {
2020 test . expect ( 2 ) ;
21- git . Repo . open ( '.. /.git' , function ( error , repository ) {
21+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
2222 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
2323 var sha = commit . sha ( ) ;
2424 test . equals ( error , null , 'There should be no error' ) ;
@@ -30,7 +30,7 @@ exports.sha = function(test) {
3030
3131exports . time = function ( test ) {
3232 test . expect ( 2 ) ;
33- git . Repo . open ( '.. /.git' , function ( error , repository ) {
33+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
3434 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
3535 var time = commit . timeMs ( ) ;
3636 test . equals ( error , null , 'There should be no error' ) ;
@@ -42,7 +42,7 @@ exports.time = function(test) {
4242
4343exports . date = function ( test ) {
4444 test . expect ( 2 ) ;
45- git . Repo . open ( '.. /.git' , function ( error , repository ) {
45+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
4646 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
4747 var date = commit . date ( ) ;
4848 test . equals ( error , null , 'There should be no error' ) ;
@@ -54,7 +54,7 @@ exports.date = function(test) {
5454
5555exports . offset = function ( test ) {
5656 test . expect ( 2 ) ;
57- git . Repo . open ( '.. /.git' , function ( error , repository ) {
57+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
5858 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
5959 var offset = commit . offset ( ) ;
6060 test . equals ( error , null , 'There should be no error' ) ;
@@ -66,7 +66,7 @@ exports.offset = function(test) {
6666
6767exports . author = function ( test ) {
6868 test . expect ( 2 ) ;
69- git . Repo . open ( '.. /.git' , function ( error , repository ) {
69+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
7070 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
7171 var author = commit . author ( ) ;
7272 test . equals ( error , null , 'There should be no error' ) ;
@@ -78,7 +78,7 @@ exports.author = function(test) {
7878
7979exports . authorName = function ( test ) {
8080 test . expect ( 1 ) ;
81- git . Repo . open ( '.. /.git' , function ( error , repository ) {
81+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
8282 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
8383 var author = commit . author ( ) ;
8484 var name = author . name ( ) ;
@@ -90,7 +90,7 @@ exports.authorName = function(test) {
9090
9191exports . authorEmail = function ( test ) {
9292 test . expect ( 1 ) ;
93- git . Repo . open ( '.. /.git' , function ( error , repository ) {
93+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
9494 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
9595 var author = commit . author ( ) ;
9696 var email = author . email ( ) ;
@@ -102,7 +102,7 @@ exports.authorEmail = function(test) {
102102
103103exports . committerName = function ( test ) {
104104 test . expect ( 1 ) ;
105- git . Repo . open ( '.. /.git' , function ( error , repository ) {
105+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
106106 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
107107 var committer = commit . committer ( ) ;
108108 var name = committer . name ( ) ;
@@ -114,7 +114,7 @@ exports.committerName = function(test) {
114114
115115exports . committerEmail = function ( test ) {
116116 test . expect ( 1 ) ;
117- git . Repo . open ( '.. /.git' , function ( error , repository ) {
117+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
118118 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
119119 var committer = commit . committer ( ) ;
120120 var email = committer . email ( ) ;
@@ -129,7 +129,7 @@ exports.committerEmail = function(test) {
129129 */
130130exports . improperCommitId = function ( test ) {
131131 test . expect ( 1 ) ;
132- git . Repo . open ( '.. /.git' , function ( error , repository ) {
132+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
133133 repository . getCommit ( 'not a proper commit sha' , function ( error , commit ) {
134134 test . notEqual ( error , null , 'Error should occur' ) ;
135135 test . done ( ) ;
@@ -142,7 +142,7 @@ exports.improperCommitId = function(test) {
142142 */
143143exports . history = function ( test ) {
144144 test . expect ( 4 ) ;
145- git . Repo . open ( '.. /.git' , function ( error , repository ) {
145+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
146146 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
147147 test . equals ( null , error , 'Getting latest branch commit should not error' ) ;
148148 var historyCount = 0 ;
@@ -167,7 +167,7 @@ exports.history = function(test) {
167167 */
168168exports . masterHead = function ( test ) {
169169 test . expect ( 1 ) ;
170- git . Repo . open ( '.. /.git' , function ( error , repository ) {
170+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
171171 repository . getBranch ( 'master' , function ( error , branch ) {
172172 var sha = branch . sha ( ) ;
173173 repository . getCommit ( sha , function ( error , commit ) {
@@ -185,7 +185,7 @@ exports.masterHead = function(test) {
185185 */
186186exports . parents = function ( test ) {
187187 test . expect ( 3 ) ;
188- git . Repo . open ( '.. /.git' , function ( error , repository ) {
188+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
189189 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
190190 commit . getParents ( function ( error , parents ) {
191191 test . equals ( parents . length , 1 , 'Commit should have exactly one parent' ) ;
@@ -203,7 +203,7 @@ exports.parents = function(test) {
203203 */
204204exports . tree = function ( test ) {
205205 test . expect ( 2 ) ;
206- git . Repo . open ( '.. /.git' , function ( error , repository ) {
206+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
207207 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
208208 test . equals ( error , null , 'Getting latest branch commit should not error' ) ;
209209
@@ -226,7 +226,7 @@ exports.tree = function(test) {
226226 */
227227exports . getDiff = function ( test ) {
228228 test . expect ( 1 ) ;
229- git . Repo . open ( '.. /.git' , function ( error , repository ) {
229+ git . Repo . open ( 'repos/workdir /.git' , function ( error , repository ) {
230230 repository . getCommit ( historyCountKnownSHA , function ( error , commit ) {
231231 commit . getDiff ( function ( error , diff ) {
232232 test . equals ( diff . length , 1 , 'Should be one item in parents diff trees' ) ;
0 commit comments