Skip to content

Commit

Permalink
Merge pull request #399 from intersystems/fix-commit-details
Browse files Browse the repository at this point in the history
Fixed issue where commit details are cut off
  • Loading branch information
isc-tleavitt authored Jul 8, 2024
2 parents 24a5e4a + 9cf045d commit 45e006f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions git-webui/release/share/git-webui/webui/js/git-webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2252,8 +2252,8 @@ webui.NewChangedFilesView = function(workspaceView) {
if (selectedItemsFromOtherUser.length > 0) {
self.confirmActionOnOtherUsersChanges("commit");
} else {
var commitMessage = $('#commitMsg').val() + "\n" + $("#commitMsgDetail").val();
self.commit(commitMessage);
var commitMessage = $('#commitMsg').val();
self.commit(commitMessage, $("#commitMsgDetail").val());
}

});
Expand Down Expand Up @@ -2455,11 +2455,11 @@ webui.NewChangedFilesView = function(workspaceView) {
});
}

self.commit = function(message) {
self.commit = function(message, details) {
var selectedFilesAsString = selectedItems.join(" ");

webui.git("add " + selectedFilesAsString);
webui.git('commit -m "' + message + '" -- ' + selectedFilesAsString, function(output) {
webui.git('commit -m "' + message + '" -m "' + details + '" -- ' + selectedFilesAsString, function(output) {
webui.showSuccess(output);
workspaceView.update();
});
Expand Down
8 changes: 4 additions & 4 deletions git-webui/src/share/git-webui/webui/js/git-webui.js
Original file line number Diff line number Diff line change
Expand Up @@ -2252,8 +2252,8 @@ webui.NewChangedFilesView = function(workspaceView) {
if (selectedItemsFromOtherUser.length > 0) {
self.confirmActionOnOtherUsersChanges("commit");
} else {
var commitMessage = $('#commitMsg').val() + "\n" + $("#commitMsgDetail").val();
self.commit(commitMessage);
var commitMessage = $('#commitMsg').val();
self.commit(commitMessage, $("#commitMsgDetail").val());
}

});
Expand Down Expand Up @@ -2455,11 +2455,11 @@ webui.NewChangedFilesView = function(workspaceView) {
});
}

self.commit = function(message) {
self.commit = function(message, details) {
var selectedFilesAsString = selectedItems.join(" ");

webui.git("add " + selectedFilesAsString);
webui.git('commit -m "' + message + '" -- ' + selectedFilesAsString, function(output) {
webui.git('commit -m "' + message + '" -m "' + details + '" -- ' + selectedFilesAsString, function(output) {
webui.showSuccess(output);
workspaceView.update();
});
Expand Down

0 comments on commit 45e006f

Please sign in to comment.