Skip to content

Commit 87e5ae0

Browse files
author
Matthijs van Otterdijk
committed
Do not transform commit ids in resetBranch
1 parent baedbb3 commit 87e5ae0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/woqlClient.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,11 +750,10 @@ WOQLClient.prototype.squashBranch = function (branchId, commitMsg) {
750750
WOQLClient.prototype.resetBranch = function (branchId, commitId) {
751751
if (commitId && branchId) {
752752
// eslint-disable-next-line camelcase
753-
const commit_descriptor = this.generateCommitDescriptor(commitId);
754753
return this.dispatch(
755754
CONST.RESET_BRANCH,
756755
this.connectionConfig.resetBranchUrl(branchId),
757-
commit_descriptor,
756+
{ commit_descriptor: commitId },
758757
);
759758
}
760759
const errmsg = 'Branch parameter error - you must specify a valid new branch id and a commit message';

0 commit comments

Comments
 (0)