mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fixes #316
Export Pusher name as GITEA_PUSHER_NAME env variable Export also GITEA_UUID, but keep the uuid env variable for backward compatibility export pusher name ENV variable #316 change env variable prefix to GITEA_ Signed-off-by: Antonio Facciolo <afdev82@gmail.com> Export also GITEA_UUID #316 Keep uuid env variable for backward compatibility
This commit is contained in:
		
				
					committed by
					
						
						Kim "BKC" Carlbäcker
					
				
			
			
				
	
			
			
			
						parent
						
							d07c955e2a
						
					
				
				
					commit
					947d2ee21b
				
			@@ -258,7 +258,11 @@ func runServ(c *cli.Context) error {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	os.Setenv("GITEA_PUSHER_NAME", user.Name)
 | 
			
		||||
 | 
			
		||||
	uuid := gouuid.NewV4().String()
 | 
			
		||||
	os.Setenv("GITEA_UUID", uuid)
 | 
			
		||||
	// Keep the old env variable name for backward compability
 | 
			
		||||
	os.Setenv("uuid", uuid)
 | 
			
		||||
 | 
			
		||||
	// Special handle for Windows.
 | 
			
		||||
 
 | 
			
		||||
@@ -49,7 +49,7 @@ func runUpdate(c *cli.Context) error {
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	task := models.UpdateTask{
 | 
			
		||||
		UUID:        os.Getenv("uuid"),
 | 
			
		||||
		UUID:        os.Getenv("GITEA_UUID"),
 | 
			
		||||
		RefName:     args[0],
 | 
			
		||||
		OldCommitID: args[1],
 | 
			
		||||
		NewCommitID: args[2],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user