scons: Fix the scons script failing to install git hooks
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Tue, 22 Dec 2020 12:39:29 +0000 (04:39 -0800)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 23 Dec 2020 02:37:27 +0000 (02:37 +0000)
commit8da27ca382d6f9d77da5e24584229d10c6975a6a
tree8a9c48ccb4213cc51c1599aef15c13b96de64f91
parent4dc09a9543e8be0a70be7b42b8521509700752a4
scons: Fix the scons script failing to install git hooks

A recent change,
https://gem5-review.googlesource.com/c/public/gem5/+/38616,
removed the 'root' environment variable, while the git hooks
installation script relies on the variable. This commit
addresses this problem.

Change-Id: I2d27861794021a6a60ef8668461e4127cb1db261
Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38655
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
site_scons/site_tools/git.py