]> git.ozlabs.org Git - next-scripts/commitdiff
mport_cpuinit fix
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Jul 2013 05:18:28 +0000 (15:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 10 Jul 2013 05:18:28 +0000 (15:18 +1000)
import-cpuinit

index 74facbd849c01735a368a5dafdbe018764c21df1..34c22f6781b258d1c3f0589645fa0bdc922627f7 100755 (executable)
@@ -20,6 +20,10 @@ cpwd=$(pwd)
 
 base=$1
 log "Importing cpuinit based on $base"
+base=$(git rev-parse --verify "$base" 2>/dev/null) || {
+       log "Bad base $base"
+       exit 1
+}
 
 [ -d "../quilt-tmp" ] ||
        execute git clone -s -l -n -q . ../quilt-tmp