Commit 670f2eb1 authored by Kamal Mostafa's avatar Kamal Mostafa

UBUNTU: [debian] getabis: Only git add $abidir if running in local repo

BugLink: http://bugs.launchpad.net/bugs/1584890

Fixes bogus error when run on a remote host, as via maint-startnewrelease:
    fatal: Not a git repository (or any of the parent directories): .git
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent ca65d27c
......@@ -125,6 +125,8 @@ mv fwinfo.tmp $fwinfo
rmdir $tmpdir
# Add the new ABI directory, remove the old
git add $abidir
find $DEBIAN/abi/* -maxdepth 0 -type d | grep -v $verfull | while read f; do git rm -r $f;done
# If this is running in a git repo, add the new ABI directory, remove the old
if [ -d ".git" ]; then
git add $abidir
find $DEBIAN/abi/* -maxdepth 0 -type d | grep -v $verfull | while read f; do git rm -r $f;done
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment