From 7ee806c9d0444dba7d9e86d0f456c2c6ea419cc2 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Tue, 7 Aug 2018 02:33:06 -0700 Subject: 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 --- tools/build_defs/repo/git.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') 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 -- cgit v1.2.3