Skip to content

Commit

Permalink
Update githook: fix detection of update file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Slayer95 committed Jun 1, 2015
1 parent 09f692b commit ccf27f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion githooks/update
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ try {
}
try {
updateStats = fs.statSync(thisFile);
updateMTime = indexStats ? indexStats.mtime.getTime() : -Infinity;
updateMTime = updateStats.mtime.getTime();
} catch (err) {
throw err; // !!
}
Expand Down

0 comments on commit ccf27f1

Please sign in to comment.