I'm trying to test a change that is queued as a pull request. The pull request is on GitHub and located here. My script is:
export P11KIT_DIR=p11-kit-master
rm -rf "$P11KIT_DIR" 2>/dev/null
if ! git clone --depth=3 https://github.com/p11-glue/p11-kit.git "$P11KIT_DIR";
then
echo "Failed to checkout p11-kit"
exit 1
fi
cd "$P11KIT_DIR"
if ! git cherry-pick a0946a562a8e;
then
echo "Failed to patch p11-kit"
exit 1
fi
The script is dying with the error:
fatal: bad revision 'a0946a562a8e'
Failed to patch p11-kit
a0946a562a8e is clearly the revision number. I took it directly from GitHub. I'm guessing cherry-pick
is the wrong command.
How do I add a0946a562a8e into master?