File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -127,15 +127,13 @@ exports.getGitMetaData = () => {
127
127
console . log ( "branch" , commit [ "branch" ] ) ;
128
128
} ) ;
129
129
130
- // if(info["branch"] == null){
131
- // gitLastCommit.
132
- // }
133
130
try {
134
131
info [ "author" ] = info [ "author" ] || `${ commit [ "author" ] [ "name" ] . replace ( / [ “ ] + / g, '' ) } <${ commit [ "author" ] [ "email" ] . replace ( / [ “ ] + / g, '' ) } >` ;
135
132
info [ "authorDate" ] = info [ "authorDate" ] || commit [ "authoredOn" ] ;
136
133
info [ "committer" ] = info [ "committer" ] || `${ commit [ "committer" ] [ "name" ] . replace ( / [ “ ] + / g, '' ) } <${ commit [ "committer" ] [ "email" ] . replace ( / [ “ ] + / g, '' ) } >` ;
137
134
info [ "committerDate" ] = info [ "committerDate" ] || commit [ "committedOn" ] ;
138
135
info [ "commitMessage" ] = info [ "commitMessage" ] || commit [ "subject" ] ;
136
+ info [ "branch" ] = info [ "branch" ] || commit [ "branch" ] ;
139
137
140
138
const { remote } = await pGitconfig ( info . commonGitDir ) ;
141
139
const remotes = Object . keys ( remote ) . map ( remoteName => ( { name : remoteName , url : remote [ remoteName ] [ 'url' ] } ) ) ;
You can’t perform that action at this time.
0 commit comments