Change git -C reset to git reset w/ wking suggestion. fix indentation

Signed-off-by: Johnny Bieren <jbieren@redhat.com>
This commit is contained in:
Johnny Bieren 2016-07-14 12:03:09 -04:00
parent ec01ae5f10
commit 2448451a18
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ function teardown() {
[ "$status" -eq 0 ]
SPEC_COMMIT=$(grep runtime-spec ${TESTDIR}/../../Godeps/Godeps.json -A 4 | grep Rev | cut -d":" -f 2 | tr -d ' "')
run git -C src/runtime-spec reset --hard "${SPEC_COMMIT}"
(
cd src/runtime-spec &&
run git reset --hard "${SPEC_COMMIT}"
)
[ "$status" -eq 0 ]
[ -e src/runtime-spec/schema/schema.json ]