Lines Matching +full:- +full:- +full:repo
6 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
17 def sanitize_repo_url(repo):
18 parsed = urlparse(repo)
19 # No username present, repo URL is fine.
21 return repo
34 ["git", "rev-parse", "--abbrev-ref", "HEAD"], stderr=STDOUT, cwd=dir_
37 .decode("utf-8")
40 check_output(["git", "rev-parse", "HEAD"], stderr=STDOUT, cwd=dir_)
42 .decode("utf-8")
44 repo = sanitize_repo_url(
46 ["git", "remote", "get-url", "origin"], stderr=STDOUT, cwd=dir_
49 .decode("utf-8")
51 return "[{} {}] ({})".format(branch, hash_, repo)