Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8355400

Better git detection in update_copyright_year.sh

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 25
    • 25
    • infrastructure
    • None
    • master

      Currently, update_copyright_year.sh detects git by checking for the existence o the .git directory a few directories below its own location.
      This is quite error-prone since it requires the script to find its own location. Also, it does not work in git worktrees.

      Instead, we can just use git itself.

            mhassig Manuel Hassig
            mhassig Manuel Hassig
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: