Re: [RFC] submodule: fix handling of supermodules with relative origin URLs.
- From
Jon Seymour <jon.seymour@gmail.com>
- Date
- May 18, 2012, 12:16 UTC
- Message-ID
- <CAH3AnrpKg0vU_T8vWMfqagQkYvpFpzF3f6qoYEq9-H8GZ6pA2w@mail.gmail.com>
- In-Reply-To
- <1337343220-26717-1-git-send-email-jon.seymour@gmail.com>
On Fri, May 18, 2012 at 10:13 PM, Jon Seymour <jon.seymour@gmail.com> wrote:
> - remoteurl=${remoteurl%/}
> + up_path="$(echo "$2" | sed "s/[^/]*/../g")"
> + remoteurl=${remoteurl%/*}Oops - didn't mean to change remoteurl here.
> + remoteurl="${up_path%/}/${remoteurl%/*}"Meant up_path%/ to be up_path%/*
jon