File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1927,8 +1927,9 @@ export class Repository implements Disposable {
1927
1927
if ( HEAD !== undefined ) {
1928
1928
const config = workspace . getConfiguration ( 'git' , Uri . file ( this . repository . root ) ) ;
1929
1929
const showActionButton = config . get < string > ( 'showUnpublishedCommitsButton' , 'whenEmpty' ) ;
1930
+ const postCommitCommand = config . get < string > ( 'postCommitCommand' ) ;
1930
1931
1931
- if ( showActionButton === 'always' || ( showActionButton === 'whenEmpty' && workingTree . length === 0 && index . length === 0 && untracked . length === 0 && merge . length === 0 ) ) {
1932
+ if ( showActionButton === 'always' || ( showActionButton === 'whenEmpty' && workingTree . length === 0 && index . length === 0 && untracked . length === 0 && merge . length === 0 && postCommitCommand !== 'sync' && postCommitCommand !== 'push' ) ) {
1932
1933
if ( HEAD . name && HEAD . commit ) {
1933
1934
if ( HEAD . upstream ) {
1934
1935
if ( HEAD . ahead ) {
You can’t perform that action at this time.
0 commit comments