diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2011-02-22 10:46:09 -0500 |
---|---|---|
committer | Code Review <codereview-daemon@eclipse.org> | 2011-02-22 10:46:09 -0500 |
commit | 561549d766d3d3010b62d5ae44e4937a2092b863 (patch) | |
tree | dc9b0c3a4243f5e4be2b4203226ddce9a585408a /org.eclipse.jgit | |
parent | 5bf3df5e1d001e4f44a91e7b87b380ce59e7705d (diff) | |
parent | 6444e60d0e80357355d005a155e009ab429b46f6 (diff) | |
download | jgit-561549d766d3d3010b62d5ae44e4937a2092b863.tar.gz jgit-561549d766d3d3010b62d5ae44e4937a2092b863.zip |
Merge "Create empty GIT_DIR/hooks directory"
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r-- | org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java index 5a54e86bfc..e2bcb01e94 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/storage/file/FileRepository.java @@ -244,6 +244,7 @@ public class FileRepository extends Repository { objectDatabase.create(); FileUtils.mkdir(new File(getDirectory(), "branches")); + FileUtils.mkdir(new File(getDirectory(), "hooks")); RefUpdate head = updateRef(Constants.HEAD); head.disableRefLog(); |