@@ -25,7 +25,7 @@ func TestEnv(t *testing.T) {
25
25
}
26
26
27
27
func TestEnvWithMediaUrl (t * testing.T ) {
28
- repo := NewRepository (t , "config_media_url " )
28
+ repo := NewRepository (t , "config_lfs_url " )
29
29
defer repo .Test ()
30
30
31
31
cmd := repo .Command ("env" )
@@ -79,24 +79,24 @@ func TestEnvWithConfiguredSubmodule(t *testing.T) {
79
79
repo := NewRepository (t , "submodule" )
80
80
defer repo .Test ()
81
81
82
- repo .AddPath (repo .Path , "config_media_url " )
82
+ repo .AddPath (repo .Path , "config_lfs_url " )
83
83
repo .Paths = repo .Paths [1 :]
84
84
85
85
cmd := repo .Command ("env" )
86
86
87
87
SetConfigOutput (cmd , map [string ]string {
88
88
"Endpoint" : "http://foo/bar" ,
89
- "LocalWorkingDir" : filepath .Join (repo .Path , "config_media_url " ),
90
- "LocalGitDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_media_url " ),
91
- "LocalMediaDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_media_url " , "lfs" , "objects" ),
92
- "TempDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_media_url " , "lfs" , "tmp" ),
89
+ "LocalWorkingDir" : filepath .Join (repo .Path , "config_lfs_url " ),
90
+ "LocalGitDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_lfs_url " ),
91
+ "LocalMediaDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_lfs_url " , "lfs" , "objects" ),
92
+ "TempDir" : filepath .Join (repo .Path , ".git" , "modules" , "config_lfs_url " , "lfs" , "tmp" ),
93
93
})
94
94
95
95
cmd .Before (func () {
96
- submodPath := filepath .Join (Root , "commands" , "repos" , "config_media_url .git" )
96
+ submodPath := filepath .Join (Root , "commands" , "repos" , "config_lfs_url .git" )
97
97
exec .Command ("git" , "submodule" , "add" , submodPath ).Run ()
98
98
exec .Command ("git" , "submodule" , "update" ).Run ()
99
- os .Chdir ("config_media_url " )
99
+ os .Chdir ("config_lfs_url " )
100
100
exec .Command ("git" , "checkout" , "-b" , "whatevs" ).Run ()
101
101
})
102
102
}
0 commit comments