<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/workdir, branch v2.4.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.4.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-12-03T20:49:24Z</updated>
<entry>
<title>git-new-workdir: don't fail if the target directory is empty</title>
<updated>2014-12-03T20:49:24Z</updated>
<author>
<name>Paul Smith</name>
<email>paul@mad-scientist.net</email>
</author>
<published>2014-11-26T20:38:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e32afab7b0376a7b07601a87cd5c6841ff2a811a'/>
<id>urn:sha1:e32afab7b0376a7b07601a87cd5c6841ff2a811a</id>
<content type='text'>
Allow new workdirs to be created in an empty directory (similar to "git
clone").  Provide more error checking and clean up on failure.

Signed-off-by: Paul Smith &lt;paul@mad-scientist.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>prefer test -h over test -L in shell scripts</title>
<updated>2010-09-27T17:48:23Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2010-09-22T00:35:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=afa0876050496d4250e8b27680e5cbc60fbda760'/>
<id>urn:sha1:afa0876050496d4250e8b27680e5cbc60fbda760</id>
<content type='text'>
Even though "-L" is POSIX, the former is more portable, and
we tend to prefer it already.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Typos in code comments, an error message, documentation</title>
<updated>2010-08-22T20:25:08Z</updated>
<author>
<name>Ralf Wildenhues</name>
<email>Ralf.Wildenhues@gmx.de</email>
</author>
<published>2010-08-22T11:12:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=22e5e58a3c75b73764b860907e4d871195f276ac'/>
<id>urn:sha1:22e5e58a3c75b73764b860907e4d871195f276ac</id>
<content type='text'>
Signed-off-by: Ralf Wildenhues &lt;Ralf.Wildenhues@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Always show which directory is not a git repository</title>
<updated>2008-12-22T02:46:41Z</updated>
<author>
<name>Richard Hartmann</name>
<email>richih.mailinglist@gmail.com</email>
</author>
<published>2008-12-21T23:17:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f66bc5f928194366ee5eb78ef18a3562fb1bb7cf'/>
<id>urn:sha1:f66bc5f928194366ee5eb78ef18a3562fb1bb7cf</id>
<content type='text'>
Unify all

  fatal: Not a git repository

error messages so they include path information.

Signed-off-by: Richard Hartmann &lt;richih@net.in.tum.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-new-workdir: Share SVN meta data between work dirs and the repository</title>
<updated>2008-03-15T07:05:18Z</updated>
<author>
<name>Bernt Hansen</name>
<email>bernt@norang.ca</email>
</author>
<published>2008-03-15T02:44:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ac378633f3cae46d2c88255e53ee38a6206d3777'/>
<id>urn:sha1:ac378633f3cae46d2c88255e53ee38a6206d3777</id>
<content type='text'>
Multiple work dirs with git svn caused each work dir to have its own
stale copy of the SVN meta data in .git/svn

git svn rebase updates commits with git-svn-id: in the repository and
stores the SVN meta data information only in that work dir.  Attempting to
git svn rebase in other work dirs for the same branch would fail because
the last revision fetched according to the git-svn-id is greater than the
revision in the SVN meta data for that work directory.

Signed-off-by: Bernt Hansen &lt;bernt@norang.ca&gt;
Acked-by: Eric Wong &lt;normalperson@yhbt.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Don't allow contrib/workdir/git-new-workdir to trash existing dirs</title>
<updated>2007-09-06T05:24:54Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-09-06T03:33:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ea09ea22d65d118328642e03ad23c8257304499d'/>
<id>urn:sha1:ea09ea22d65d118328642e03ad23c8257304499d</id>
<content type='text'>
Recently I found that doing a sequence like the following:

  git-new-workdir a b
  ...
  git-new-workdir a b

by accident will cause a (and now also b) to have an infinite cycle
in its refs directory.  This is caused by git-new-workdir trying
to create the "refs" symlink over again, only during the second
time it is being created within a's refs directory and is now also
pointing back at a's refs.

This causes confusion in git as suddenly branches are named things
like "refs/refs/refs/refs/refs/refs/refs/heads/foo" instead of the
more commonly accepted "refs/heads/foo".  Plenty of commands start
to see ambiguous ref names and others just take ages to compute.

git-clone has the same safety check, so git-new-workdir should
behave just like it.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Suggest unsetting core.bare when using new-workdir on a bare repository</title>
<updated>2007-08-22T22:18:13Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-08-22T05:33:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8fa0ee3b50736eb869a3e13375bb041c1bf5aa12'/>
<id>urn:sha1:8fa0ee3b50736eb869a3e13375bb041c1bf5aa12</id>
<content type='text'>
If core.bare is set to true in the config file of a repository that
the user is trying to create a working directory from we should
abort and suggest to the user that they remove the option first.

If we leave the core.bare=true setting in the config file then
working tree operations will get confused when they attempt to
execute in the new workdir, as it shares its config file with the
bare repository.  The working tree operations will assume that the
workdir is bare and abort, which is not what the user wants.

If we changed core.bare to be false then working tree operations
will function in the workdir but other operations may fail in the
bare repository, as it claims to not be bare.

If we remove core.bare from the config then Git can fallback on
the legacy guessing behavior.  This allows operations in the bare
repository to work as though it were bare, while operations in the
workdirs to act as though they are not bare.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix new-workdir (again) to work on bare repositories</title>
<updated>2007-08-22T22:18:13Z</updated>
<author>
<name>Shawn O. Pearce</name>
<email>spearce@spearce.org</email>
</author>
<published>2007-08-22T01:50:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e301bfeea19e284344868840793c58d2e7529c74'/>
<id>urn:sha1:e301bfeea19e284344868840793c58d2e7529c74</id>
<content type='text'>
My day-job workflow involves using multiple workdirs attached to a
bunch of bare repositories.  Such repositories are stored inside of
a directory called "foo.git", which means `git rev-parse --git-dir`
will return "." and not ".git".  Under such conditions new-workdir
was getting confused about where the Git repository it was supplied
is actually located.

If we get "." for the result of --git-dir query it means we should
use the user supplied path as-is, and not attempt to perform any
magic on it, as the path is directly to the repository.

Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-new-workdir: Fix shell warning about operator == used with test.</title>
<updated>2007-06-27T01:18:47Z</updated>
<author>
<name>Simon Hausmann</name>
<email>simon@lst.de</email>
</author>
<published>2007-06-25T11:04:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b658d50325c938d87d4891cb62e2eefb0b58a62c'/>
<id>urn:sha1:b658d50325c938d87d4891cb62e2eefb0b58a62c</id>
<content type='text'>
Use = instead of == with test to test for equality.

Signed-off-by: Simon Hausmann &lt;simon@lst.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>new-workdir: handle rev-parse --git-dir not always giving full path</title>
<updated>2007-06-24T09:36:56Z</updated>
<author>
<name>Julian Phillips</name>
<email>julian@quantumfyre.co.uk</email>
</author>
<published>2007-06-19T11:44:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=09381b458f5f1ac1a78df1aaeeb53aa79fcf2c4f'/>
<id>urn:sha1:09381b458f5f1ac1a78df1aaeeb53aa79fcf2c4f</id>
<content type='text'>
rev-parse --git-dir outputs a full path - except for the single case
of when the path would be $(pwd)/.git, in which case it outputs simply
.git.  Check for this special case and handle it.

Signed-off-by: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
