@@ -2633,17 +2633,16 @@ webui.NewChangedFilesView = function(workspaceView) {
2633
2633
}
2634
2634
2635
2635
self . amend = function ( message , details ) {
2636
- var selectedFilesAsString = selectedItems . join ( " " ) ;
2637
2636
2638
2637
if ( self . commitMsgEmpty ( ) ) {
2639
- webui . git ( "add " + selectedFilesAsString ) ;
2638
+ webui . git_command ( [ "add" ] . concat ( selectedItems ) ) ;
2640
2639
webui . git_command ( [ 'commit' , '--amend' , '--no-edit' , '--' ] . concat ( selectedItems ) , function ( output ) {
2641
2640
webui . showSuccess ( output ) ;
2642
2641
workspaceView . update ( ) ;
2643
2642
} ) ;
2644
2643
} else if ( selectedItems . length != 0 ) {
2645
- webui . git ( "add " + selectedFilesAsString ) ;
2646
- webui . git_command ( [ 'commit' , '--amend' , '-m' , message , '-m' , ' details' , '--' ] . concat ( selectedItems ) , function ( output ) {
2644
+ webui . git_command ( [ "add" ] . concat ( selectedItems ) ) ;
2645
+ webui . git_command ( [ 'commit' , '--amend' , '-m' , message , '-m' , details , '--' ] . concat ( selectedItems ) , function ( output ) {
2647
2646
webui . showSuccess ( output ) ;
2648
2647
workspaceView . update ( ) ;
2649
2648
} ) ;
@@ -2658,7 +2657,6 @@ webui.NewChangedFilesView = function(workspaceView) {
2658
2657
}
2659
2658
2660
2659
self . commit = function ( message , details ) {
2661
- // var selectedFilesAsString = selectedItems.join(" ");
2662
2660
webui . git_command ( [ "add" ] . concat ( selectedItems ) ) ;
2663
2661
webui . git_command ( [ 'commit' , '-m' , message , '-m' , details , '--' ] . concat ( selectedItems ) , function ( output ) {
2664
2662
webui . showSuccess ( output ) ;
0 commit comments