1. 21 7月, 2008 2 次提交
  2. 20 7月, 2008 6 次提交
  3. 17 7月, 2008 1 次提交
  4. 16 7月, 2008 4 次提交
  5. 15 7月, 2008 4 次提交
    • P
      t9600: allow testing with cvsps 2.2, including beta versions · a271b2a9
      Pavel Roskin 提交于
      We've supported cvsps 2.1 so far.  Newer 2.2b1 (beta) seems to work with
      us, too.
      Signed-off-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a271b2a9
    • N
      restore legacy behavior for read_sha1_file() · ac939109
      Nicolas Pitre 提交于
      Since commit 8eca0b47, it is possible
      for read_sha1_file() to return NULL even with existing objects when they
      are corrupted.  Previously a corrupted object would have terminated the
      program immediately, effectively making read_sha1_file() return NULL
      only when specified object is not found.
      
      Let's restore this behavior for all users of read_sha1_file() and
      provide a separate function with the ability to not terminate when
      bad objects are encountered.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ac939109
    • M
      git-submodule - make "submodule add" more strict, and document it · ec05df35
      Mark Levedahl 提交于
      This change makes "submodule add" much more strict in the arguments it
      takes, and is intended to address confusion as recently noted on the
      git-list. With this change, the required syntax is:
      
      	$ git submodule add URL path
      
      Specifically, this eliminates the form
      
      	$ git submodule add URL
      
      which was confused by more than one person as
      
      	$ git submodule add path
      
      With this patch, the URL locating the submodule's origin repository can be
      either an absolute URL, or (if it begins with ./ or ../) can express the
      submodule's repository location relative to the superproject's origin.
      
      This patch also eliminates a third form of URL, which was relative to the
      superproject's top-level directory (not its repository).  Any URL that was
      neither absolute nor matched ./*|../* was assumed to point to a
      subdirectory of the superproject as the location of the submodule's origin
      repository.  This URL form was confusing and does not seem to correspond
      to an important use-case.  Specifically, no-one has identified the need to
      clone from a repository already in the superproject's tree, but if this is
      needed it is easily done using an absolute URL: $(pwd)/relative-path.  So,
      no functionality is lost with this patch. (t6008-rev-list-submodule.sh did
      rely upon this relative URL, fixed by using $(pwd).)
      
      Following this change, there are exactly four variants of
      submodule-add, as both arguments have two flavors:
      
      URL can be absolute, or can begin with ./|../ and thus names the
      submodule's origin relative to the superproject's origin.
      
      Note: With this patch, "submodule add" discerns an absolute URL as
      matching /*|*:*: e.g., URL begins with /, or it contains a :.  This works
      for all valid URLs, an absolute path in POSIX, as well as an absolute path
      on Windows).
      
      path can either already exist as a valid git repo, or will be cloned from
      the given URL.  The first form here eases creation of a new submodule in
      an existing superproject as the submodule can be added and tested in-tree
      before pushing to the public repository.  However, the more usual form is
      the second, where the repo is cloned from the given URL.
      
      This specifically addresses the issue of
      
      	$ git submodule add a/b/c
      
      attempting to clone from a repository at "a/b/c" to create a new module
      in "c". This also simplifies description of "relative URL" as there is now
      exactly *one* form: a URL relative to the parent's origin repo.
      Signed-off-by: NMark Levedahl <mlevedahl@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      ec05df35
    • J
      git-svn: find-rev and rebase for SVN::Mirror repositories · 63c56022
      João Abecasis 提交于
      find-rev and rebase error out on svm because git-svn doesn't trace the
      original svn revision numbers back to git commits. The updated test
      case, included in the patch, shows the issue and passes with the rest of
      the patch applied.
      
      This fixes Git::SVN::find_by_url to find branches based on the
      svm:source URL, where useSvmProps is set. Also makes sure cmd_find_rev
      and working_head_info use the information they have to correctly track
      the source repository. This is enough to get find-rev and rebase
      working.
      Signed-off-by: NJoão Abecasis <joao@abecasis.name>
      Acked-by: NEric Wong <normalperson@yhbt.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      63c56022
  6. 14 7月, 2008 8 次提交
  7. 13 7月, 2008 1 次提交
    • J
      Move MERGE_RR from .git/rr-cache/ into .git/ · 0af0ac7e
      Johannes Schindelin 提交于
      If you want to reuse the rerere cache in another repository, and set
      a symbolic link to it, you do not want to have the two repositories
      interfer with each other by accessing the _same_ MERGE_RR.
      
      For example, if you use contrib/git-new-workdir to set up a second
      working directory, and you have a conflict in one working directory,
      but commit in the other working directory first, the wrong "resolution"
      will be recorded.
      
      The easy solution is to move MERGE_RR out of the rr-cache/ directory,
      which also corresponds with the notion that rr-cache/ contains cached
      resolutions, not some intermediate temporary states.
      
      Noticed by Kalle Olavi Niemitalo.
      Signed-off-by: NJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0af0ac7e
  8. 12 7月, 2008 4 次提交
    • 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
    • M
    • M
      t0001-init.sh: change confusing directory name · b6138273
      Miklos Vajna 提交于
      using git-init as directory name confused 'make remove-dashes', so just
      drop the 'git-' prefix.
      Signed-off-by: NMiklos Vajna <vmiklos@frugalware.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b6138273
    • 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
  9. 10 7月, 2008 5 次提交
    • J
      Teach merge.log to "git-merge" again · 4393c237
      Junio C Hamano 提交于
      The command forgot the configuration variable when rewritten in C.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4393c237
    • O
      builtin-rerere: more carefully find conflict markers · 99d698f1
      Olivier Marin 提交于
      When a conflicting file contains a line that begin with "=======", rerere
      failed to parse conflict markers. This result to a wrong preimage file and
      an unexpected error for the user.  The boundary between ours and theirs
      not just begin with 7 equals, but is followed by either a SP or a LF.
      
      This patch enforces parsing rules so that markers match in the right order,
      and when ambiguous, the command does not autoresolve the conflicted file.
      
      Especially because we are introducing rerere.autoupdate configuration
      (which is off by default for safety) that automatically stages the
      resolution made by rerere, it is necessary to make sure that we do not
      autoresolve when there is any ambiguity.
      Signed-off-by: NOlivier Marin <dkr@freesurf.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      99d698f1
    • J
      apply: fix copy/rename breakage · a9a3e82e
      Junio C Hamano 提交于
      7ebd52aa (Merge branch 'dz/apply-again', 2008-07-01) taught "git-apply" to
      grok a (non-git) patch that is a concatenation of separate patches that
      touch the same file number of times, by recording the postimage of patch
      application of previous round and using it as the preimage for later
      rounds.
      
      This "incremental" mode of patch application fundamentally contradicts
      with the way git rename/copy patches are designed.  When a git patch talks
      about a file A getting modified, and a new file B created out of A, like
      this:
      
      	diff --git a/A b/A
      	--- a/A
      	+++ b/A
      	... change text here ...
      	diff --git a/A b/B
      	copy from A
      	copy to B
      	--- a/A
      	+++ b/B
      	... change text here ...
      
      the second change to produce B does not depend on what is done to A with
      the first change in any way.  This is explicitly done so for reviewability
      of individual patches.
      
      With this commit, we do not look at 'fn_table' that records the postimage
      of previous round when applying a patch to produce a new file out of an
      existing file.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      a9a3e82e
    • R
      t9100-git-svn-basic.sh: Fix determination of utf-8 locale · 952182b5
      Ramsay Jones 提交于
      When setting the GIT_SVN_LC_ALL variable, default to the $LANG
      environment variable, when the $LC_ALL override is not set.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      952182b5
    • R
      t9113-*.sh: provide user feedback when test skipped · c6955fec
      Ramsay Jones 提交于
      Currently this test simply exits without providing any
      feedback at all.  Tell user if the test is being skipped
      and provide a hint as to how the test may be enabled.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      c6955fec
  10. 09 7月, 2008 5 次提交