Created
January 4, 2011 19:41
-
-
Save hugoduncan/765278 to your computer and use it in GitHub Desktop.
Local git clone resource
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns "blah" | |
(:require | |
[pallet.resource :as resource] | |
[pallet.execute :as execute]) | |
(resource/deflocal git-clone | |
"Clone a git repo" | |
(git-clone* | |
[request repo] | |
(execute/local-script ;; in 0.4.0-SNAPSHOT | |
(git clone ~repo)) | |
request)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would need a conditional for running more than once
(if (directory? ~path)
(do (cd ~path) (git pull))
(git clone ~repo ~path))