# branch builtin

2 messages from 2006-11-01 to 2006-11-01. Participants: Andy Whitcroft, Junio C Hamano.
Thread: https://gitlist.dev/t/43486

## Andy Whitcroft, 2006-11-01 20:17

Subject: branch builtin
Message-ID: <454900F5.5050603@shadowen.org>
URL: https://gitlist.dev/e/454900F5.5050603%40shadowen.org

```
Since the branch command moved built-in it no longer works in
sub-directories.  I've futzed with it and it seems adding RUN_SETUP to
the command table for branch makes 'git branch' work.  Is this safe to do?


```

## Junio C Hamano, 2006-11-01 20:50

Subject: Re: branch builtin
Message-ID: <7v7iye51tq.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v7iye51tq.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <454900F5.5050603@shadowen.org>

```
Andy Whitcroft <apw@shadowen.org> writes:

> Since the branch command moved built-in it no longer works in
> sub-directories.  I've futzed with it and it seems adding RUN_SETUP to
> the command table for branch makes 'git branch' work.  Is this safe to do?

"git branch" is usable only within a git repository, so
RUN_SETUP should be the sane thing to do.  Thanks for noticing.

```
