1. 16 4月, 2012 1 次提交
    • C
      properly keep track of current working directory · 2565b43b
      Clemens Buchacher 提交于
      Various failure modes in the repository detection code path currently
      quote the wrong directory in their error message. The working directory
      is changed iteratively to the parent directory until a git repository is
      found. If the working directory cannot be changed to the parent
      directory for some reason, the detection gives up and prints an error
      message. The error message should report the current working directory.
      
      Instead of continually updating the 'cwd' variable, which is actually
      used to remember the original working directory, the 'offset' variable
      is used to keep track of the current working directory. At the point
      where the affected error handling code is called, 'offset' already
      points to the end of the parent of the working directory, rather than
      the current working directory.
      
      Fix this by explicitly using a variable 'offset_parent' and update
      'offset' concurrently with the call to chdir.
      
      In a similar fashion, the function get_device_or_die() would print the
      original working directory in case of a failure, rather than the current
      working directory. Fix this as well by making use of the 'offset'
      variable.
      
      Lastly, replace the phrase 'mount parent' with 'mount point'. The former
      appears to be a typo.
      Signed-off-by: NClemens Buchacher <drizzd@aon.at>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2565b43b
  2. 07 4月, 2012 2 次提交
  3. 04 4月, 2012 1 次提交
  4. 03 4月, 2012 7 次提交
  5. 02 4月, 2012 2 次提交
  6. 31 3月, 2012 2 次提交
  7. 30 3月, 2012 1 次提交
  8. 29 3月, 2012 3 次提交
  9. 28 3月, 2012 1 次提交
  10. 27 3月, 2012 14 次提交
  11. 24 3月, 2012 6 次提交