|
|
|
@@ -932,6 +932,10 @@ func moveAndAddFiles(oldTreePath, newTreePath string, t *TemporaryUploadReposito |
|
|
|
stdOut := new(bytes.Buffer) |
|
|
|
stdErr := new(bytes.Buffer) |
|
|
|
stdIn := new(bytes.Buffer) |
|
|
|
//write all files in stage format to the stdin, |
|
|
|
//for each file,remove old tree path and add new tree path |
|
|
|
//see the update-index help document at https://git-scm.com/docs/git-update-index |
|
|
|
//especially see the content of "USING --INDEX-INFO" |
|
|
|
for _, v := range array { |
|
|
|
if v == "" { |
|
|
|
continue |
|
|
|
|