diff --git a/ChangeLog b/ChangeLog index ace0f18..a20b091 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,9 @@ Wed Apr 18 2012 Davide Madrisan * spec-create - Davide Madrisan: Also support git URL starting by http:// and https://. + * spec-create - Davide Madrisan: + Exist with error when git is required but cannot be found. + ------------------------------------------------------------------------------- Changes in version 1.9.4 diff --git a/plugins/spec-create.in b/plugins/spec-create.in index d19208d..6f944b5 100644 --- a/plugins/spec-create.in +++ b/plugins/spec-create.in @@ -475,6 +475,9 @@ function specfile.create() { case "$2" in git://*|http://*.git|https://*.git) + which git &>/dev/null || + notify.error $"utility not found"": \`git'" + tmpgitdir=$(mktemp -q -d -t tmpgit.XXXXXXXX) [ $? -eq 0 ] || notify.error $"can't create temporary files"