diff options
author | James Moger <james.moger@gitblit.com> | 2011-07-22 17:47:53 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-07-22 17:47:53 -0400 |
commit | a2709dd91e5d6b18f573016882ccc70799573ad3 (patch) | |
tree | 6b87a08d65c462d9f51b253e7deafb95c7167bbb /docs | |
parent | b1dba764c201f4708b82767b2d91edb6e189ce6f (diff) | |
download | gitblit-a2709dd91e5d6b18f573016882ccc70799573ad3.tar.gz gitblit-a2709dd91e5d6b18f573016882ccc70799573ad3.zip |
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.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/00_index.mkd | 1 | ||||
-rw-r--r-- | docs/04_releases.mkd | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/00_index.mkd b/docs/00_index.mkd index a6559b21..91f661d2 100644 --- a/docs/00_index.mkd +++ b/docs/00_index.mkd @@ -23,6 +23,7 @@ Gitblit requires a Java 6 Runtime Environment (JRE) or a Java 6 Development Kit **%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)) based on [%JGIT%][jgit] *released %BUILDDATE%*
+- fixed: repositories with a HEAD that pointed to an empty branch caused internal errors (issue 14)
- fixed: bare-cloned repositories were listed as (empty) and were not clickable (issue 13)
- fixed: default port for Gitblit GO is now 8443 to be more linux/os x friendly (issue 12)
- fixed: forward-slashes ('/', %2F) can be encoded using a custom character to workaround some servlet container default security measures for proxy servers (issue 11)<br/>**New:** *web.forwardSlashCharacter = /*
diff --git a/docs/04_releases.mkd b/docs/04_releases.mkd index fee98c13..f5020224 100644 --- a/docs/04_releases.mkd +++ b/docs/04_releases.mkd @@ -3,6 +3,7 @@ ### Current Release
**%VERSION%** ([go](http://code.google.com/p/gitblit/downloads/detail?name=%GO%)|[war](http://code.google.com/p/gitblit/downloads/detail?name=%WAR%)) based on [%JGIT%][jgit] *released %BUILDDATE%*
+- fixed: repositories with a HEAD that pointed to an empty branch caused internal errors (issue 14)
- fixed: bare-cloned repositories were listed as (empty) and were not clickable (issue 13)
- fixed: default port for Gitblit GO is now 8443 to be more linux/os x friendly (issue 12)
- fixed: forward-slashes ('/', %2F) can be encoded using a custom character to workaround some servlet container default security measures for proxy servers (issue 11)<br/>**New:** *web.forwardSlashCharacter = /*
|