src/ostree: Don't delete refs having aliases
authorSinny Kumari <sinny@redhat.com>
Thu, 4 Oct 2018 13:48:05 +0000 (19:18 +0530)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 11 Oct 2018 13:41:32 +0000 (13:41 +0000)
commitc70526841e86bf72d0714db84305cd35ac62f527
tree31965608fbe35110ffb72fac19b065004bd24580
parent05e99da7a7395e80353210a576db52ba5062f1e7
src/ostree: Don't delete refs having aliases

Deleting a ref with aliases makes them dangling. In such
cases, display an error message to the user.

Fixes #1597

Signed-off-by: Sinny Kumari <sinny@redhat.com>
Closes: #1749
Approved by: cgwalters
src/ostree/ot-builtin-refs.c
tests/test-refs.sh