From 54f0293f0ab73f357f545f8e05d16f9b254aba5e Mon Sep 17 00:00:00 2001 From: Jonas Date: Sat, 8 Apr 2017 17:27:26 +0200 Subject: Mirror sync interval specified as duration string (#1407) * Sync interval specifed as duration string * Changed mirror interval text * make fmt * Add MinInterval for mirror sync * Use duration internally * Changed min default to 10m * make fmt * Incorrect default * Removed defaults in MustDuration() * Add Mirror interval migration * Default values corrected * Use transaction during migration * Change http 500 to page with error message * Cleanup session.commit() --- options/locale/locale_en-US.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'options') diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index c843a4b398..cfb4da30ae 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -440,7 +440,8 @@ create_repo = Create Repository default_branch = Default Branch mirror_prune = Prune mirror_prune_desc = Remove any remote-tracking references that no longer exist on the remote -mirror_interval = Mirror Interval (hour) +mirror_interval = Mirror interval (valid time units are "h", "m", "s") +mirror_interval_invalid = Mirror interval is not valid mirror_address = Mirror Address mirror_address_desc = Please include necessary user credentials in the address. mirror_last_synced = Last Synced -- cgit v1.2.3