[PATCH COGITO] Do not make cross device hard links

From: Alexey Nezhdanov <snake@penza-gsm.ru>
Date: 2005-04-26 17:30:14
cg-clone doesn't work across devices:

cd /tmp # my tmp is on seperate partition
mkdir cg
cd cg
cg-clone /home/snake/cg/
....
`/home/snake/cg/.git/objects/85/eb3d54aeec1d0f4cf3d2de257b8d7e29816147' -> 
`.git/objects/85/eb3d54aeec1d0f4cf3d2de257b8d7e29816147'
cp: cannot create link 
`.git/objects/85/eb3d54aeec1d0f4cf3d2de257b8d7e29816147': Invalid 
cross-device link
-----------

I have decided that problem should be solved by omitting -u flag while 
fetching in cg-pul;:
$fetch -s -d "$uri/objects" ".git/objects" || die "rsync error"

My variant of autodetection is probably very ugly, but it's works for me :)

-- 
Respectfully
Alexey Nezhdanov


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Tue Apr 26 17:30:56 2005

This archive was generated by hypermail 2.1.8 : 2005-04-26 17:30:56 EST