[PATCH] git and symlinks as tracked content
Allow to store and track symlink in the repository. A symlink is stored the same way as a regular file, only with the appropriate mode bits set. The symlink target is therefore stored in a blob object. This will hopefully make our udev repository fully functional. :) Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
5210372fe4
commit
8ae0a8c514
@ -24,7 +24,7 @@ static int get_stat_data(struct cache_entry *ce, unsigned char **sha1p, unsigned
|
||||
static unsigned char no_sha1[20];
|
||||
int changed;
|
||||
struct stat st;
|
||||
if (stat(ce->name, &st) < 0)
|
||||
if (lstat(ce->name, &st) < 0)
|
||||
return -1;
|
||||
changed = cache_match_stat(ce, &st);
|
||||
if (changed) {
|
||||
|
||||
Reference in New Issue
Block a user