Base number of commits off of the branch on origin
parent
dc72e9a1c9
commit
9b67c091aa
File diff suppressed because one or more lines are too long
|
|
@ -199,7 +199,11 @@ export default class Versioning {
|
|||
* Note: HEAD should not be used, as it may be detached, resulting in an additional count.
|
||||
*/
|
||||
static async getTotalNumberOfCommits() {
|
||||
const numberOfCommitsAsString = await System.run('git', ['rev-list', '--count', this.branch]);
|
||||
const numberOfCommitsAsString = await System.run('git', [
|
||||
'rev-list',
|
||||
'--count',
|
||||
`origin/${this.branch}`,
|
||||
]);
|
||||
|
||||
return Number.parseInt(numberOfCommitsAsString, 10);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue