diff --git a/sdk_args.gni b/sdk_args.gni index 7e974a5d0fe..2776011c854 100644 --- a/sdk_args.gni +++ b/sdk_args.gni @@ -18,10 +18,7 @@ declare_args() { # # to out/ReleaseX64/args.gn. The path above can be extracted from the `.git` # file under the git worktree folder. - # The script run here should take care of everything automatically though. - default_git_folder = exec_script("$_dart_root/tools/get_dot_git_folder.py", - [ rebase_path("$_dart_root/.git") ], - "trim string") + default_git_folder = "$_dart_root/.git" # Whether to enable the SDK hash check that will prevent loading a kernel # into a VM which was built with a different SDK. diff --git a/tools/get_dot_git_folder.py b/tools/get_dot_git_folder.py deleted file mode 100755 index 5dabce263fe..00000000000 --- a/tools/get_dot_git_folder.py +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env python -# Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file -# for details. All rights reserved. Use of this source code is governed by a -# BSD-style license that can be found in the LICENSE file. -# -# This python script is a wrapper around `git rev-parse --resolve-git-dir`. -# This is used for the build system to work with git worktrees. - -import sys -import subprocess - - -def main(): - if len(sys.argv) != 2: - raise Exception('Expects exactly 1 argument.') - - return subprocess.call( - ['git', 'rev-parse', '--resolve-git-dir', sys.argv[1]]) - - -if __name__ == '__main__': - sys.exit(main())