Copyright 2005-2014 Red Hat, Inc.
Red Hat licenses this file to you under the Apache License, version
2.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied. See the License for the specific language governing
permissions and limitations under the License.
A helper class for working with a git repo for a Fabric managed OpenShift cartridge
Clones or pulls the remote repository and returns the directory with the checkout
throw new IOException("Failed to create local repository");
LOG.info("Cloning remote repo " + repo);
"+refs/heads/*:refs/remotes/" + remoteName + "/*");
config.setString("branch", branch, "merge", "refs/heads/" + branch);
"Failed to save the git configuration to " + localRepo + " with remote repo: "
LOG.info("Pulling from remote repo " + repo);