Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
bencoveney
· 7y ago · 0 comments
Git has a mechanism for getting the root repo directory - `git rev-parse --show-toplevel`
Comments
[–]
wincent
7y ago
True. I guess I wanted to avoid shelling out, but it probably wouldn't hurt.