From a2709dd91e5d6b18f573016882ccc70799573ad3 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 22 Jul 2011 17:47:53 -0400 Subject: Centralize default branch/HEAD resolution (issue 14) If an object id was not specified Gitblit used HEAD to perform the operation. This breaks under some conditions like working with a repository that does not have any commits on master but does have commits on a vcs-import branch. The new approach is to centralize the resolution of unspecified object ids to a common method which resolves HEAD first but uses the most recently modified branch if HEAD points to nothing. This commit also includes a non-functional method for creating an empty branch. I couldn't figure out how to make JGit create an orphaned branch. --- distrib/users.properties | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'distrib') diff --git a/distrib/users.properties b/distrib/users.properties index 56142dfa..cfb8bf1f 100644 --- a/distrib/users.properties +++ b/distrib/users.properties @@ -1,3 +1,3 @@ -## Git:Blit realm file format: username=password,\#permission,repository1,repository2... -#Tue Jun 07 20:57:42 EDT 2011 +## Gitblit realm file format: username=password,\#permission,repository1,repository2... +#Fri Jul 22 14:27:08 EDT 2011 admin=admin,\#admin -- cgit v1.2.3