path: root/Makefile
diff options
authorShawn O. Pearce <>2007-09-24 12:50:58 (GMT)
committerShawn O. Pearce <>2007-09-25 01:48:39 (GMT)
commit85f77eadcc1d6e5a62079ab86988ffe95e9421d5 (patch)
treea1f90b93957cc635016ac059c434d3cbf7975d5c /Makefile
parent81d4d3dddc5e96aea45a2623c9b1840491348b92 (diff)
git-gui: Copy objects/info/alternates during standard clone
If the source repository is using an objects/info/alternates file we need to copy the file to our new repository so that it can access any objects that won't be copied/hardlinked as they are stored in the alternate location. We explicitly resolve all paths in the objects/info/alternates as relative to the source repository but then convert them into an absolute path for the new clone. This allows the new clone to access the exact same locaton as the source repository, even if relative paths had been used before. Under Cygwin we assume that Git is Cygwin based and that the paths in objects/info/alternates must be valid Cygwin UNIX paths, so we need to run `cygpath --unix` on each line in the alternate list. Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions