This project is mirrored from https://github.com/git/git. Pull mirroring updated .
  1. 19 Mar, 2014 1 commit
    • David Tran's avatar
      tests: use "env" to run commands with temporary env-var settings · 512477b1
      David Tran authored
      Ordinarily, we would say "VAR=VAL command" to execute a tested
      command with environment variable(s) set only for that command.
      This however does not work if 'command' is a shell function (most
      notably 'test_must_fail'); the result of the assignment is retained
      and affects later commands.
      
      To avoid this, we used to assign and export environment variables
      and run such a test in a subshell, like so:
      
              (
                      VAR=VAL && export VAR &&
                      test_must_fail git command to be tested
              )
      
      But with "env" utility, we should be able to say:
      
              test_must_fail env VAR=VAL git command to be tested
      
      which is much shorter and easier to read.
      Signed-off-by: default avatarDavid Tran <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      512477b1
  2. 03 Sep, 2008 1 commit
  3. 24 May, 2008 1 commit
  4. 05 Mar, 2008 1 commit
    • Shawn O. Pearce's avatar
      git-pack-objects: Automatically pack annotated tags if object was packed · f0a24aa5
      Shawn O. Pearce authored
      The new option "--include-tag" allows the caller to request that
      any annotated tag be included into the packfile if the object the tag
      references was also included as part of the packfile.
      
      This option can be useful on the server side of a native git transport,
      where the server knows what commits it is including into a packfile to
      update the client.  If new annotated tags have been introduced then we
      can also include them in the packfile, saving the client from needing
      to request them through a second connection.
      
      This change only introduces the backend option and provides a test.
      Protocol extensions to make this useful in fetch-pack/upload-pack
      are still necessary to activate the logic during transport.
      Signed-off-by: default avatarShawn O. Pearce <[email protected]>
      Signed-off-by: default avatarJunio C Hamano <[email protected]>
      f0a24aa5