Skip to content

Commit 2cebd69

Browse files
committed
ensure there is a commit to push
1 parent 3cfdbcb commit 2cebd69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commit-stream.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ function commitStream (ghUser, ghProject) {
7070
}
7171

7272
function onEnd (callback) {
73-
this.push(commit)
73+
if (commit)
74+
this.push(commit)
7475
callback()
7576
}
7677
}

0 commit comments

Comments
 (0)