File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,6 @@ export const commitChangesFromRepo = async ({
40
40
dir : repoDirectory ,
41
41
trees,
42
42
map : async ( filepath , [ commit , workdir ] ) => {
43
- const prevOid = await commit ?. oid ( ) ;
44
- const currentOid = await workdir ?. oid ( ) ;
45
- // Don't include files that haven't changed, and exist in both trees
46
- if ( prevOid === currentOid && ! commit === ! workdir ) {
47
- return null ;
48
- }
49
43
// Don't include ignored files
50
44
if (
51
45
await git . isIgnored ( {
@@ -56,6 +50,12 @@ export const commitChangesFromRepo = async ({
56
50
) {
57
51
return null ;
58
52
}
53
+ const prevOid = await commit ?. oid ( ) ;
54
+ const currentOid = await workdir ?. oid ( ) ;
55
+ // Don't include files that haven't changed, and exist in both trees
56
+ if ( prevOid === currentOid && ! commit === ! workdir ) {
57
+ return null ;
58
+ }
59
59
// Iterate through anything that may be a directory in either the
60
60
// current commit or the working directory
61
61
if (
You can’t perform that action at this time.
0 commit comments