Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-227

Commit relative path instead of absolute path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.3.4
    • 1.3.4
    • Core features
    • None

    Description

      When I do a release with 'git version 1.5.2.5' I get this exception:

      error: pathspec '/home/alexis/ode.git/Buildfile' did not match any file(s) known to git.

      Actually this version of Git does not accept the absolute path, the path must be relative to the repository top directory. With 'git version 1.5.6.3' (and above), this bug does not occur.

      Considering that we already enforce the release to be run from the top directory and that all VCS accept relative paths (AFAIK), don't you think it would be worth committing the relative path to the buildfile?

      The patch would be:
      in core/build.rb, def commit_new_snapshot
      File.basename(Buildr.application.buildfile.to_s.)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alexismidon Alexis Midon
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: