1. 15 7月, 2008 1 次提交
  2. 14 7月, 2008 18 次提交
  3. 12 7月, 2008 3 次提交
    • J
      t0004: fix timing bug · 329636b4
      Junio C Hamano 提交于
      The test created an initial commit, made .git/objects unwritable and then
      exercised various codepaths to create loose commit, tree and blob objects
      to make sure the commands notice failures from these attempts.
      
      However, the initial commit was not preceded with test_tick, which made
      its object name depend on the timestamp.  The names of all the later tree
      and blob objects the test tried to create were static.  If the initial
      commit's object name happened to begin with the same two hexdigits as the
      tree or blob objects the test later attempted to create, the fan-out
      directory in which these tree or blob would be created is already created
      when the initial commit was made, and the object creation succeeds, and
      commands being tested should not notice any failure --- in short, the test
      was bogus.
      
      This makes the fan-out directories also unwritable, and adds test_tick
      before the commit object creation to make the test repeatable.
      
      The contents of the file to create a blob from "a" to "60" is to force the
      name of the blob object to begin with "1b", which shares the fan-out
      directory with the initial commit that is created with the test.  This was
      useful when diagnosing the breakage of this test.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      329636b4
    • L
      b4958181
    • P
      Fix backwards-incompatible handling of core.sharedRepository · 8c6202d8
      Petr Baudis 提交于
      06cbe855 (Make core.sharedRepository more generic, 2008-04-16) broke the
      traditional setting of core.sharedRepository to true, which was to make
      the repository group writable: with umask 022, it would clear the
      permission bits for 'other'. (umask 002 did not exhibit this behaviour
      since pre-chmod() check in adjust_shared_perm() fails in that case.)
      
      The call to adjust_shared_perm() should only loosen the permission.
      If the user has umask like 022 or 002 that allow others to read, the
      resulting files should be made readable and writable by group, without
      restricting the readability by others.
      
      This patch fixes the adjust_shared_perm() mode tweak based on Junio's
      suggestion and adds the appropriate tests to t/t1301-shared-repo.sh.
      
      Cc: Heikki Orsila <heikki.orsila@iki.fi>
      Signed-off-by: NPetr Baudis <pasky@suse.cz>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      8c6202d8
  4. 10 7月, 2008 13 次提交
  5. 09 7月, 2008 5 次提交