fix git branch sort order (#80096)

This commit is contained in:
João Moreno
2019-08-30 10:27:20 +02:00
committed by GitHub
parent 190a29c9f8
commit b3f85bc76d

View File

@@ -1628,7 +1628,7 @@ export class Repository {
const args = ['for-each-ref', '--format', '%(refname) %(objectname)'];
if (opts && opts.sort && opts.sort !== 'alphabetically') {
args.push('--sort', opts.sort);
args.push('--sort', `-${opts.sort}`);
}
const result = await this.run(args);