Commit 69cda823 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Allow for an empty tag list.

parent 1b42e191
......@@ -747,6 +747,16 @@ sub GetTagList($)
chdir("$REPODIR/$reponame") or
fatal("Could not chdir to $REPODIR/$reponame");
# See if any tags to list.
my $taglist = emutil::ExecQuiet("$GIT tag --list");
if ($?) {
print STDERR $taglist;
fatal("Could not check for tag list from repository");
}
if ($taglist =~/^$/) {
return [];
}
#
# First we need a list of tags and their hash. Note dereference option
# here; we need to dereference annotated tags. This complicates the
......
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