From a1b01b2513510f8f93f7f8ca39969002cd496a19 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Wed, 03 Dec 2008 16:34:23 +0000 Subject: ui-log: try to disambiguate ref names The 'h' querystring parameter in cgit is normally used to specify a branch (i.e. a ref below refs/heads/), but if a repository contains a tag with the same name as a branch the output from ui-log would use the tag as start-revision. This patch tries to fix the issue by checking if the specified ref is valid as a branch name; if so, the full refname is used in the call to setup_revisions(). Noticed-by: Takamori Yamaguchi Signed-off-by: Lars Hjemli --- (limited to 'ui-refs.c') -- cgit v0.9.0.2