Skip to content

Commit e5b9a18

Browse files
Add release argument to mark workspace as safe. (#9366)
1 parent 607119a commit e5b9a18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,12 @@ def main():
223223
parser.add_argument('--arch_specific_executor_tag', default=False, action='store_true', help='Suffix the executor image tag with the CPU architecture (amd64 or arm64)')
224224
parser.add_argument('--version', default='', help='Version tag override, used when pushing docker images. Implies --bump_version_type=none')
225225
parser.add_argument('--skip_latest_tag', default=False, action='store_true')
226+
parser.add_argument('--mark_workspace_as_safe', default=False, action='store_true')
226227
args = parser.parse_args()
227228

229+
if args.mark_workspace_as_safe:
230+
run_or_die('git config --global --add safe.directory .')
231+
228232
if workspace_is_clean():
229233
print("Workspace is clean!")
230234
elif args.allow_dirty:

0 commit comments

Comments
 (0)