From 65b4e3d773db09832e31f59b0503bd9063108e64 Mon Sep 17 00:00:00 2001 From: Winston Li Date: Mon, 3 Nov 2014 15:05:35 +0000 Subject: [PATCH] Server now allows clone/pull from existing repositories and rejects all pushes. --- services/git-bridge/.idea/workspace.xml | 302 +++++++++++------- .../application/WLGitBridgeApplication.java | 4 + .../application/WLGitBridgeServer.java | 27 +- .../ac/ic/wlgitbridge/git/WLGitServlet.java | 5 +- .../wlgitbridge/git/WLRepositoryResolver.java | 55 ++-- .../InvalidRootDirectoryPathException.java | 7 + .../test/git/WLRepositoryResolverTests.java | 2 +- 7 files changed, 243 insertions(+), 159 deletions(-) create mode 100644 services/git-bridge/src/uk/ac/ic/wlgitbridge/git/exception/InvalidRootDirectoryPathException.java diff --git a/services/git-bridge/.idea/workspace.xml b/services/git-bridge/.idea/workspace.xml index 5ccda29b38..619aab2e46 100644 --- a/services/git-bridge/.idea/workspace.xml +++ b/services/git-bridge/.idea/workspace.xml @@ -8,6 +8,11 @@ + + + + + @@ -30,31 +35,21 @@ - - - - - - - - - - - - + + - - + + - - + + @@ -70,11 +65,21 @@ - + - - + + + + + + + + + + + + @@ -84,27 +89,37 @@ - + - - - - - - - - - - - - + + - + + + + + + + + + + + + + + + + + + + + + @@ -113,18 +128,8 @@ - - - - - - - - - - - - + + @@ -177,17 +182,20 @@ @@ -263,6 +271,28 @@