Browse Source

Fixes input ordering when generating diff for cloud patch from commit

main
Ramin Tadayon 1 year ago
parent
commit
772aaaaa7d
No known key found for this signature in database GPG Key ID: 79D60DDE3DFB95F5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/plus/drafts/draftsService.ts

+ 1
- 1
src/plus/drafts/draftsService.ts View File

@ -217,7 +217,7 @@ export class DraftService implements Disposable {
? this.container.git.getBranch(change.repository.uri).then(b => (b != null ? [b.name] : undefined))
: this.container.git.getCommitBranches(change.repository.uri, change.revision.sha),
change.contents == null
? this.container.git.getDiff(change.repository.path, change.revision.sha, change.revision.baseSha)
? this.container.git.getDiff(change.repository.path, change.revision.baseSha, change.revision.sha)
: undefined,
this.container.git.getFirstCommitSha(change.repository.uri),
this.container.git.getBestRemoteWithProvider(change.repository.uri),

Loading…
Cancel
Save