@@ -24,7 +24,7 @@ public class GitTest : ProcessExecutorTestFixtureBase
24
24
const string GIT_COMMIT_KEY = "commit" ;
25
25
const string FROM_COMMIT = "0123456789abcdef" ;
26
26
const string TO_COMMIT = "fedcba9876543210" ;
27
- const string GIT_LOG_OPTIONS = "--name-status --pretty=format:\" Commit:%H%nTime:%ci%nAuthor:%an%nE-Mail:%ae%nMessage:%s%n%n%b%nChanges:\" -m" ;
27
+ const string GIT_LOG_OPTIONS = "-100 - -name-status --pretty=format:\" Commit:%H%nTime:%ci%nAuthor:%an%nE-Mail:%ae%nMessage:%s%n%n%b%nChanges:\" -m" ;
28
28
const string GIT_LOG_REMOTE_COMMITS = "log " + FROM_COMMIT + "..origin/master " + GIT_LOG_OPTIONS ;
29
29
const string GIT_LOG_ALL = "log origin/master " + GIT_LOG_OPTIONS ;
30
30
@@ -71,6 +71,7 @@ public void PopulateFromFullySpecifiedXml()
71
71
<tagOnSuccess>true</tagOnSuccess>
72
72
<commitBuildModifications>true</commitBuildModifications>
73
73
<commitUntrackedFiles>true</commitUntrackedFiles>
74
+ <maxAmountOfModificationsToFetch>500</maxAmountOfModificationsToFetch>
74
75
<autoGetSource>true</autoGetSource>
75
76
<tagCommitMessage>CCNet Test Build {0}</tagCommitMessage>
76
77
<tagNameFormat>{0}</tagNameFormat>
@@ -92,6 +93,8 @@ public void PopulateFromFullySpecifiedXml()
92
93
Assert . AreEqual ( "[email protected] " , git . CommitterEMail , "#B11" ) ;
93
94
Assert . AreEqual ( true , git . CommitBuildModifications , "#B12" ) ;
94
95
Assert . AreEqual ( true , git . CommitUntrackedFiles , "#B13" ) ;
96
+ Assert . AreEqual ( 500 , git . MaxAmountOfModificationsToFetch , "#B14" ) ;
97
+
95
98
}
96
99
97
100
[ Test ]
@@ -115,6 +118,7 @@ public void PopulateFromMinimallySpecifiedXml()
115
118
Assert . AreEqual ( null , git . CommitterEMail , "#C11" ) ;
116
119
Assert . AreEqual ( false , git . CommitBuildModifications , "#C12" ) ;
117
120
Assert . AreEqual ( false , git . CommitUntrackedFiles , "#C13" ) ;
121
+ Assert . AreEqual ( 100 , git . MaxAmountOfModificationsToFetch , "#C14" ) ;
118
122
}
119
123
120
124
[ Test ]
0 commit comments