diff options
| author | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2012-05-11 16:21:53 -0300 |
|---|---|---|
| committer | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2012-05-11 16:21:53 -0300 |
| commit | f0eb7d195ddb73eb292cfb62ae9f25f328392808 (patch) | |
| tree | d0266f14c36886aff2fd1d6efc27f18451f8a1d8 /src | |
| parent | ef3d1d3e38a8e7d84af68cfc7ff10fc0fad2e3ee (diff) | |
| download | luarocks-f0eb7d195ddb73eb292cfb62ae9f25f328392808.tar.gz luarocks-f0eb7d195ddb73eb292cfb62ae9f25f328392808.tar.bz2 luarocks-f0eb7d195ddb73eb292cfb62ae9f25f328392808.zip | |
Ensures that branches are properly fetched if needed
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/fetch/git.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index 7db74c26..c7cc7008 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
| @@ -26,6 +26,8 @@ function get_sources(rockspec, extract, dest_dir) | |||
| 26 | local checkout_command | 26 | local checkout_command |
| 27 | local tag_or_branch = rockspec.source.tag or rockspec.source.branch | 27 | local tag_or_branch = rockspec.source.tag or rockspec.source.branch |
| 28 | if tag_or_branch then | 28 | if tag_or_branch then |
| 29 | -- ensure the branch is available | ||
| 30 | table.insert(command, 4, "--no-single-branch") | ||
| 29 | checkout_command = {git_cmd, "checkout", tag_or_branch} | 31 | checkout_command = {git_cmd, "checkout", tag_or_branch} |
| 30 | end | 32 | end |
| 31 | local store_dir | 33 | local store_dir |
