mirror of
				https://kkgithub.com/actions/checkout
				synced 2025-11-04 08:11:53 +08:00 
			
		
		
		
	.
This commit is contained in:
		@ -430,6 +430,7 @@ class GitCommandManager {
 | 
				
			|||||||
    const listenersD = {...customListeners, ...defaultListener}
 | 
					    const listenersD = {...customListeners, ...defaultListener}
 | 
				
			||||||
    const stdout: string[] = []
 | 
					    const stdout: string[] = []
 | 
				
			||||||
    let temp = ''
 | 
					    let temp = ''
 | 
				
			||||||
 | 
					    let temp2 = ''
 | 
				
			||||||
    const options = {
 | 
					    const options = {
 | 
				
			||||||
      cwd: this.workingDirectory,
 | 
					      cwd: this.workingDirectory,
 | 
				
			||||||
      env,
 | 
					      env,
 | 
				
			||||||
@ -441,12 +442,20 @@ class GitCommandManager {
 | 
				
			|||||||
          temp += chunk.toString()
 | 
					          temp += chunk.toString()
 | 
				
			||||||
          next()
 | 
					          next()
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					      }),
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      outStream: new stream.Writable({
 | 
				
			||||||
 | 
					        write(chunk, _, next) {
 | 
				
			||||||
 | 
					          temp2 += chunk.toString()
 | 
				
			||||||
 | 
					          next()
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
      })
 | 
					      })
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    result.exitCode = await exec.exec(`"${this.gitPath}"`, args, options)
 | 
					    result.exitCode = await exec.exec(`"${this.gitPath}"`, args, options)
 | 
				
			||||||
    result.stdout = stdout.join('')
 | 
					    result.stdout = stdout.join('')
 | 
				
			||||||
    core.info(temp.length.toString())
 | 
					    core.info(temp.length.toString())
 | 
				
			||||||
 | 
					    core.info(temp2.length.toString())
 | 
				
			||||||
    return result
 | 
					    return result
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user