]> source.dussan.org Git - jgit.git/commit
Allow Repository.getDirectory() to be null 62/962/1
authorShawn O. Pearce <spearce@spearce.org>
Sat, 26 Jun 2010 00:46:07 +0000 (17:46 -0700)
committerShawn O. Pearce <spearce@spearce.org>
Sat, 26 Jun 2010 01:03:41 +0000 (18:03 -0700)
commitffe0614d4db653cbcd48c19e9f599fd87cdcfaba
tree78120cd464aa4874fd39b52e3ed500349f949193
parent8a9844b2afc4e30e60759c03a1428dc99a13619e
Allow Repository.getDirectory() to be null

Some types of repositories might not be stored on local disk.  For
these, they will most likely return null for getDirectory() as the
java.io.File type cannot describe where their storage is, its not
in the host's filesystem.

Document that getDirectory() can return null now, and update all
current non-test callers in JGit that might run into problems on
such repositories.  For the most part, just act like its bare.

Change-Id: I061236a691372a267fd7d41f0550650e165d2066
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/TextFileServlet.java
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/resolver/FileResolver.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Glog.java
org.eclipse.jgit/src/org/eclipse/jgit/api/CommitCommand.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RepositoryCache.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchProcess.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/RemoteRefUpdate.java