mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 19:38:20 +08:00 
			
		
		
		
	updated other version-specific logic
This commit is contained in:
		
							
								
								
									
										8
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -524,13 +524,7 @@ class GitCommandManager {
 | 
			
		||||
    branchList(remote) {
 | 
			
		||||
        return __awaiter(this, void 0, void 0, function* () {
 | 
			
		||||
            const result = [];
 | 
			
		||||
            // Note, this implementation uses "rev-parse --symbolic-full-name" because the output from
 | 
			
		||||
            // "branch --list" is more difficult when in a detached HEAD state.
 | 
			
		||||
            // TODO(https://github.com/actions/checkout/issues/786): this implementation uses
 | 
			
		||||
            // "rev-parse --symbolic-full-name" because there is a bug
 | 
			
		||||
            // in Git 2.18 that causes "rev-parse --symbolic" to output symbolic full names. When
 | 
			
		||||
            // 2.18 is no longer supported, we can switch back to --symbolic.
 | 
			
		||||
            const args = ['rev-parse', '--symbolic-full-name'];
 | 
			
		||||
            const args = ['rev-parse', '--symbolic'];
 | 
			
		||||
            if (remote) {
 | 
			
		||||
                args.push('--remotes=origin');
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user