Skip to content

Commit d393021

Browse files
authored
prepare for master to main rename. commit this PR after the rename has finished (Azure#19331)
1 parent f3bceec commit d393021

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scripts/auto_release/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,4 +417,4 @@ def main():
417417
my_print(e)
418418
else:
419419
with open(f'{OUT_PATH}/output.txt', 'w') as file_out:
420-
file_out.writelines([f'{NEW_BRANCH}\n', "master" if TRACK == '2' else 'release/v3'])
420+
file_out.writelines([f'{NEW_BRANCH}\n', "main" if TRACK == '2' else 'release/v3'])

scripts/devops_tasks/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
test_tools_req_file = os.path.abspath(os.path.join(root_dir, "eng", "test_tools.txt"))
3636

3737
GIT_REPO_NAME = "azure-sdk-for-python"
38-
GIT_MASTER_BRANCH = "master"
38+
GIT_MASTER_BRANCH = "main"
3939
VENV_NAME = "regressionenv"
4040
AZURE_SDK_FOR_PYTHON_GIT_URL = "https://github.com/Azure/azure-sdk-for-python.git"
4141
TEMP_FOLDER_NAME = ".tmp_code_path"

sdk/containerregistry/azure-mgmt-containerregistry/tests/disable_test_mgmt_containerregistry_2018_02_01_preview.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def _create_build_task(self, build_task_name, registry_name, resource_group_name
276276

277277
def _create_build_step(self, build_step_name, build_task_name, registry_name, resource_group_name, location):
278278
docker_build_step = DockerBuildStep(
279-
branch='master',
279+
branch='main',
280280
image_names=['repo:tag'],
281281
is_push_enabled=True,
282282
no_cache=False,
@@ -294,7 +294,7 @@ def _create_build_step(self, build_step_name, build_task_name, registry_name, re
294294
).result()
295295

296296
self.assertEqual(build_step.name, build_step_name)
297-
self.assertEqual(build_step.properties.branch, 'master')
297+
self.assertEqual(build_step.properties.branch, 'main')
298298
self.assertEqual(build_step.properties.image_names, ['repo:tag'])
299299
self.assertEqual(build_step.properties.is_push_enabled, True)
300300
self.assertEqual(build_step.properties.no_cache, False)

0 commit comments

Comments
 (0)