<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/templates, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-04-18T04:26:11Z</updated>
<entry>
<title>hook/update: example of how to prevent branch creation</title>
<updated>2009-04-18T04:26:11Z</updated>
<author>
<name>Pierre Habouzit</name>
<email>madcoder@debian.org</email>
</author>
<published>2009-04-16T20:00:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aed97c677cdfd1b9bbc9b33b5418ad4a29109082'/>
<id>urn:sha1:aed97c677cdfd1b9bbc9b33b5418ad4a29109082</id>
<content type='text'>
Since git doesn't provide a receive.denyBranchCreation or similar, here is
an example of how to be sure users cannot create branches remotely by
pushing a new reference.

This setup has been proven useful to prevent creation of spurious branches
because of users having their remote.origin.push set to HEAD, when they
use `git push` while being on a local topic branch of theirs instead of
the proper one.

Signed-off-by: Pierre Habouzit &lt;madcoder@debian.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Modify description file to say what this file is</title>
<updated>2009-03-04T08:56:52Z</updated>
<author>
<name>John Tapsell</name>
<email>johnflux@gmail.com</email>
</author>
<published>2009-02-19T07:36:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=28001d0873cfce1ad6a44f1c2deaf9388d953cc3'/>
<id>urn:sha1:28001d0873cfce1ad6a44f1c2deaf9388d953cc3</id>
<content type='text'>
A lot of people see this message for the first time on the gitweb
interface, where there is no clue as to what 'this file' means.

Signed-off-by: John Tapsell &lt;johnflux@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix permission bits on sources checked out with an overtight umask</title>
<updated>2008-09-09T20:32:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-08-22T00:31:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d8bdc49265559786533d7f7377b2c39038dd6309'/>
<id>urn:sha1:d8bdc49265559786533d7f7377b2c39038dd6309</id>
<content type='text'>
Two patches 9907721 (templates/Makefile: don't depend on local umask
setting, 2008-02-28) and 96cda0b (templates/Makefile: install is
unnecessary, just use mkdir -p, 2008-08-21) tried to prevent an overtight
umask the builder/installer might have from screwing over the installation
procedure, but we forgot there was another source of trouble.  If the
person who checked out the source tree had an overtight umask, it will
leak out to the built products, which is propagated to the installation
destination.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Install templates with the user and group of the installing personality</title>
<updated>2008-08-20T23:01:45Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2008-08-20T15:36:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=71f463773a310de016da20136fd7160685f97faa'/>
<id>urn:sha1:71f463773a310de016da20136fd7160685f97faa</id>
<content type='text'>
If 'make install' was run with sufficient privileges, then the installed
templates, which are copied using 'tar', would receive the user and group
of whoever built git. This instructs 'tar' to ignore the user and group
that are recorded in the archive.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'j6t/mingw'</title>
<updated>2008-07-03T04:57:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-07-03T04:57:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bb1ab2db08f48add4236a5a9c08aa1a6aa4d5d48'/>
<id>urn:sha1:bb1ab2db08f48add4236a5a9c08aa1a6aa4d5d48</id>
<content type='text'>
* j6t/mingw: (38 commits)
  compat/pread.c: Add a forward declaration to fix a warning
  Windows: Fix ntohl() related warnings about printf formatting
  Windows: TMP and TEMP environment variables specify a temporary directory.
  Windows: Make 'git help -a' work.
  Windows: Work around an oddity when a pipe with no reader is written to.
  Windows: Make the pager work.
  When installing, be prepared that template_dir may be relative.
  Windows: Use a relative default template_dir and ETC_GITCONFIG
  Windows: Compute the fallback for exec_path from the program invocation.
  Turn builtin_exec_path into a function.
  Windows: Use a customized struct stat that also has the st_blocks member.
  Windows: Add a custom implementation for utime().
  Windows: Add a new lstat and fstat implementation based on Win32 API.
  Windows: Implement a custom spawnve().
  Windows: Implement wrappers for gethostbyname(), socket(), and connect().
  Windows: Work around incompatible sort and find.
  Windows: Implement asynchronous functions as threads.
  Windows: Disambiguate DOS style paths from SSH URLs.
  Windows: A rudimentary poll() emulation.
  Windows: Implement start_command().
  ...
</content>
</entry>
<entry>
<title>Update sample pre-commit hook to use "diff --check"</title>
<updated>2008-06-27T05:08:25Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-06-26T23:08:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03e2b630f05b88da5ff43f194fed25755de44e8b'/>
<id>urn:sha1:03e2b630f05b88da5ff43f194fed25755de44e8b</id>
<content type='text'>
Now "diff --check" can detect not just whitespace errors but also notices
leftover conflict marker lines, we can use it in the sample pre-commit
hook script.

These days the object layer knows about the empty tree object without
actually having one in the repository, so we can run the test even for the
initial commit.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>When installing, be prepared that template_dir may be relative.</title>
<updated>2008-06-26T06:47:14Z</updated>
<author>
<name>Johannes Sixt</name>
<email>johannes.sixt@telecom.at</email>
</author>
<published>2008-01-01T21:15:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0b50b860a505d4a1d6fa595a400f3968333e7128'/>
<id>urn:sha1:0b50b860a505d4a1d6fa595a400f3968333e7128</id>
<content type='text'>
Since the Makefile in the template/ subdirectory is only used to install
the templates, we do not simply pass down the setting of template_dir
when it is relative, but construct the intended destination in a new
variable: A relative template_dir is relative to gitexecdir.

Signed-off-by: Johannes Sixt &lt;johannes.sixt@telecom.at&gt;
</content>
</entry>
<entry>
<title>Fix use of "perl -i" on Windows</title>
<updated>2008-06-26T00:21:52Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-06-25T18:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3015fa5846c19e79f99c1d6a49fd2510ed9291b8'/>
<id>urn:sha1:3015fa5846c19e79f99c1d6a49fd2510ed9291b8</id>
<content type='text'>
The perldiag(1) has following to say about this:

    "Can't do inplace edit without backup"

	(F) You're on a system such as MS-DOS that gets confused if
	you try reading from a deleted (but still opened) file. You
	have to say -i.bak, or some such.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Ship sample hooks with .sample suffix</title>
<updated>2008-06-25T02:06:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-06-25T01:45:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f98f8cbac01e0d5dbb30660d7ea70af6a1439dfd'/>
<id>urn:sha1:f98f8cbac01e0d5dbb30660d7ea70af6a1439dfd</id>
<content type='text'>
We used to mark hooks we ship as samples by making them unexecutable, but
some filesystems cannot tell what is executable and what is not.

This makes it much more explicit.  The hooks are suffixed with .sample
(but now are made executable), so enabling it is still one step operation
(instead of "chmod +x $hook", you would do "mv $hook.sample $hook") but
now they won't get accidentally enabled on systems without executable bit.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pre-rebase hook update</title>
<updated>2008-06-25T02:06:06Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-06-25T02:05:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ba2d0f4f35beffbf715ca652d5b36df8c0ad5ceb'/>
<id>urn:sha1:ba2d0f4f35beffbf715ca652d5b36df8c0ad5ceb</id>
<content type='text'>
This hook is what I have been using to manage topic branches in git.git,
but have not been updated to the Real Thing for a while.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
