mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 14:31:02 +00:00 
			
		
		
		
	chore: unbreak existing tests
Because the user:password is no longer automatically set as upstream origin, we have to set it manually if we want push to work.
This commit is contained in:
		
					parent
					
						
							
								9fb75a141d
							
						
					
				
			
			
				commit
				
					
						f7fb1226a4
					
				
			
		
					 5 changed files with 16 additions and 0 deletions
				
			
		|  | @ -791,6 +791,7 @@ func TestPullRequestStaleReview(t *testing.T) { | |||
| 			cloneURL, _ := url.Parse(clone) | ||||
| 			cloneURL.User = url.UserPassword("user2", userPassword) | ||||
| 			require.NoError(t, git.CloneWithArgs(t.Context(), nil, cloneURL.String(), dstPath, git.CloneRepoOptions{})) | ||||
| 			doGitSetRemoteURL(dstPath, "origin", cloneURL)(t) | ||||
| 
 | ||||
| 			return dstPath | ||||
| 		} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue