Browse Source

#1773

add comment
tags/v1.22.5.1^2
open_test 3 years ago
parent
commit
b5f5394347
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/repofiles/update.go

+ 4
- 0
modules/repofiles/update.go View File

@@ -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


Loading…
Cancel
Save