File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,19 @@ module.exports = CoreObject.extend({
14
14
return new RSVP . Promise ( function ( resolve /*, reject */ ) {
15
15
simpleGit ( _this . path ) . log ( function ( err , log ) {
16
16
var info = log . latest ;
17
- resolve ( {
18
- sha : info . hash . replace ( "'" , '' ) ,
19
- email : info . author_email . replace ( "'" , '' ) ,
20
- name : info . author_name ,
21
- timestamp : new Date ( info . date ) . toISOString ( ) ,
22
- branch : gitRepoInfo ( ) . branch ,
23
- tag : gitRepoInfo ( ) . tag
24
- } ) ;
17
+
18
+ if ( ! info ) {
19
+ resolve ( ) ;
20
+ } else {
21
+ resolve ( {
22
+ sha : info . hash . replace ( "'" , '' ) ,
23
+ email : info . author_email . replace ( "'" , '' ) ,
24
+ name : info . author_name ,
25
+ timestamp : new Date ( info . date ) . toISOString ( ) ,
26
+ branch : gitRepoInfo ( ) . branch ,
27
+ tag : gitRepoInfo ( ) . tag
28
+ } ) ;
29
+ }
25
30
} ) ;
26
31
} ) ;
27
32
}
You can’t perform that action at this time.
0 commit comments