The script requires LINUX_GIT to be set, preferably, in your
local .bashrc. I added a quick check to see if .bashrc exists
and check it first to see if LINUX_GIT is set there.
[labbott: Tweaked commit text]
Signed-off-by: Miguel Flores Silverio <floresmigu3l@gmail.com>
We save off the top commit into a new file called 'gitrev'. This will help
us automate exploded tree creation by providing a simple file to read to
get the exact upstream commit to use as the base.
Before it would just error out because it was only looking at the patch-
listings in the sources file. So now we let it do that, and if the VER
variable is null after we just assume it's the first git snapshot of the
merge window and figure out the version from the linux- tarball.
Why I didn't fix this sooner, I have no idea. Probably because it only
happens 4 times a year and laziness wins the day.
There are two reasons for this. The first is that there is much more
context around the changes. The second is that this will make automating
an exploded git tree much easier to manage.