MCPcopy Create free account
hub / github.com/apache/arrow / repository_root

Method repository_root

dev/archery/archery/utils/git.py:94–97  ·  view source on GitHub ↗

Locates the repository's root path from a subdirectory.

(self, git_dir=None, **kwargs)

Source from the content-addressed store, hash-verified

92 return self.rev_parse("--abbrev-ref", "HEAD", **kwargs)
93
94 def repository_root(self, git_dir=None, **kwargs):
95 """ Locates the repository's root path from a subdirectory. """
96 stdout = self.rev_parse("--show-toplevel", git_dir=git_dir, **kwargs)
97 return stdout.decode('utf-8')
98
99
100git = Git()

Callers 1

findMethod · 0.80

Calls 2

rev_parseMethod · 0.95
decodeMethod · 0.45

Tested by

no test coverage detected