Date: prev next · Thread: first prev next last
2010 Archives by date, by thread · List index


i keep forgetting to reply-all to get it to the list :-)

 On Sat, Oct 9, 2010 at 12:27 AM, Miklos Vajna <vmiklos@frugalware.org> wrote:
On Fri, Oct 08, 2010 at 08:58:26PM -0500, Norbert Thiebaud <nthiebaud@gmail.com> wrote:
# go up the chain until you find a .git
while [ ${current_dir} != "/" -a -d "${current_dir}" -a ! -d
"${current_dir}/.git" ] ;
do
    current_dir=$(dirname "${current_dir}")
done

do you know 'git rev-parse --show-cdup'? :)

 The problem is that if you are in rootgit/rawbuild/vcl/source for example
 git-rev-parse with give you ../../
 the same result as if you where at
 rootgit/clone/libs-gui/vcl/source
 and now you are in the road to readlink and its notorious non-portability

 in other word.. the fact that rawbuild is a collection of link that
 point inside of differents git repos make llife a little more
 interesting....



Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.