author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 25 Oct 2005 23:40:31 +0000 (01:40 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 26 Oct 2005 06:46:15 +0000 (23:46 -0700) | ||
commit | 303958dc42d451aead0e1b9cf7b9836831a05f4b | |
tree | aca610711c650866e3118ff09c085fe270ffdced | tree | snapshot |
parent | f89ad67fb054bead054bc92b4d0d4d007248b611 | commit | diff |
create_symref: if symlink fails, fall back to writing a "symbolic ref"
There are filesystems out there which do not understand symlinks, even if
the OS is perfectly capable of writing them. So, do not fail right away,
but try to write a symbolic ref first. If that fails, you can die().
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
There are filesystems out there which do not understand symlinks, even if
the OS is perfectly capable of writing them. So, do not fail right away,
but try to write a symbolic ref first. If that fails, you can die().
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
refs.c | diff | blob | history |