# StGIT munged path on refresh

3 messages from 2007-06-04 to 2007-06-04. Participants: Andy Green, Catalin Marinas.
Thread: https://gitlist.dev/t/8423

## Andy Green, 2007-06-04 08:24

Subject: StGIT munged path on refresh
Message-ID: <4663CC54.7090203@warmcat.com>
URL: https://gitlist.dev/e/4663CC54.7090203%40warmcat.com

```
Hi folks -

I have been using quilt with some success and now I am trying to migrate
to stgit.  I can get started okay with stg init and stg new "mypatch",
stg refresh then picks up modifications without having to be told about
the changed files, very nice.

However after I have modified several files in the tree, stg refresh
breaks without my having changed anything in the meantime to do with
stgit.  The problem looks like this:

$ stg refresh
Checking for changes in the working directory... done
Refreshing patch "mISDN-remove-unused-test-from-bitops.patch"...error:
drivers/isdn/hardware/mISDN/drivers/isdn/hardware/mISDN/appl.c: does not
exist and --remove not passed
fatal: Unable to process file
drivers/isdn/hardware/mISDN/drivers/isdn/hardware/mISDN/appl.c
stg refresh: Failed git-update-index

$ pwd
/projects/octotux/packages/mISDN-1.2.0/drivers/isdn/hardware/mISDN
$ ls appl.c
appl.c

The tree starts at /projects/octotux/packages/mISDN-1.2.0, ie, there is
a .git/ in there.  Notice that in the diagnostic, the path after the
start of the tree is repeated twice :-( but I did not run any stg or git
commands between a successful stg refresh and the first broken one.

In case it is important, I am working on a branch called "portability".

This is with

# rpm -q git-core
git-core-1.5.0.6-1.fc7
# rpm -q stgit
stgit-0.12.1-2.fc7

-Andy

```

## Andy Green, 2007-06-04 10:36

Subject: Re: StGIT munged path on refresh
Message-ID: <4663EB48.3020302@warmcat.com>
URL: https://gitlist.dev/e/4663EB48.3020302%40warmcat.com
In-Reply-To: <4663CC54.7090203@warmcat.com>

```
Andy Green wrote:

> I have been using quilt with some success and now I am trying to migrate
> to stgit.  I can get started okay with stg init and stg new "mypatch",

Sorry for the noise -- I found this is a FAQ, you currently have to do
the refresh at the top of the tree, unlike in quilt.

-Andy

```

## Catalin Marinas, 2007-06-04 15:35

Subject: Re: StGIT munged path on refresh
Message-ID: <b0943d9e0706040835u3224cd02x9c129871441a5480@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0706040835u3224cd02x9c129871441a5480%40mail.gmail.com
In-Reply-To: <4663EB48.3020302@warmcat.com>

```
On 04/06/07, Andy Green <andy@warmcat.com> wrote:
> Andy Green wrote:
>
> > I have been using quilt with some success and now I am trying to migrate
> > to stgit.  I can get started okay with stg init and stg new "mypatch",
>
> Sorry for the noise -- I found this is a FAQ, you currently have to do
> the refresh at the top of the tree, unlike in quilt.

Fixing StGIT to run correctly in subdirectories is on my to-do list,
only that I haven't had time to look at it yet.

-- 
Catalin

```
