diff options
author | Ed Schouten <ed.schouten@prodrive-technologies.com> | 2018-08-07 02:33:06 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-08-07 02:34:52 -0700 |
commit | 7ee806c9d0444dba7d9e86d0f456c2c6ea419cc2 (patch) | |
tree | 743f7dedf8ff8d0a213d273600c8b402868238d8 /tools | |
parent | 6d4cc4c910a92c9de664ef99b7b2c3681f8d9cf1 (diff) |
Fix the ordering of month and day.
I got an INFO message from Bazel containing the following date string:
"shallow_since": "2018-31-07"
The code seems to reveal that the date is intended to be YYYY-MM-DD, so
change the requested format passed to Git.
Closes #5734.
PiperOrigin-RevId: 207683709
Diffstat (limited to 'tools')
-rw-r--r-- | tools/build_defs/repo/git.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build_defs/repo/git.bzl b/tools/build_defs/repo/git.bzl index 5280aee4a8..510e2a134c 100644 --- a/tools/build_defs/repo/git.bzl +++ b/tools/build_defs/repo/git.bzl @@ -95,7 +95,7 @@ set -ex shallow_date = ctx.execute([ bash_exe, "-c", - "(cd '{directory}' && git log -n 1 --pretty='format:%cd' --date='format:%Y-%d-%m')".format( + "(cd '{directory}' && git log -n 1 --pretty='format:%cd' --date='format:%Y-%m-%d')".format( directory = ctx.path("."), ), ]).stdout |