Skip to content

Commit 4cefa3b

Browse files
authored
Merge pull request #61 from ember-cli-deploy/feature/58-non-git-projects
Update git.js
2 parents 18e5fc3 + 9045926 commit 4cefa3b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/scm-data-generators/git.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ module.exports = CoreObject.extend({
1313
var _this = this;
1414
return new RSVP.Promise(function(resolve/*, reject */) {
1515
simpleGit(_this.path).log(function(err, log) {
16-
var info = log.latest;
17-
18-
if(!info) {
16+
if(!log || !log.latest) {
1917
resolve();
2018
} else {
19+
var info = log.latest;
20+
2121
resolve({
2222
sha: info.hash.replace("'",''),
2323
email: info.author_email.replace("'",''),

0 commit comments

Comments
 (0)