History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1829
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Don Ross
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Enable use of reference copies when cloning a git repository

Created: 01/Nov/13 05:00 PM   Updated: 04/Dec/13 08:40 PM
Return to search
Component/s: None
Affects Version/s: 5.0.39
Fix Version/s: 5.1.0-rc4, 5.1.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: CentOS server, Windows 7 agent, msysgit version 1.8.4


 Description  « Hide
Cloning a large git repository can add a large chunk to build time, not to mention disk space. To reduce these costs (as well as network bandwith), it is possible from the git command line to create a bare repository:
> git clone --bare ssh:user@host/git/myrepo.git myrepo_dir C:\GitRepos\myrepo.git
and then use that bare repository as a reference copy when creating new workspaces on the system:
> git clone --reference C:\GitRepos\myrepo.git ssh:user@host/git/myrepo.git C:\workspaces\first_workspace
> git clone --reference C:\GitRepos\myrepo.git ssh:user@host/git/myrepo.git C:\workspaces\second_workspace

It would be very helpful for the git plug-in to QuickBuild to support this model.

All that would be needed would be a field in the Git repository definition 'reference copy', which would be the absolute path to the reference copy (with variable expansion of course).
This would then be passed on the command line via the '--reference' option. If the reference copy does not exist, then this option is already ignored by the git command.

Of course, a truly robust implementation would have the plug-in detect the existence of the reference copy and create it (via the --bare command) if it does not. But that is perhaps over-reaching.

 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.