From 1c817663269b52065b79eba37f29a5a4f67348d1 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Tue, 23 Oct 2012 17:48:48 -0400
Subject: [PATCH] Fix broken unit test on Windows

---
 distrib/makekeystore_jdk.cmd |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/distrib/makekeystore_jdk.cmd b/distrib/makekeystore_jdk.cmd
index 648c8f4..d3c9e94 100644
--- a/distrib/makekeystore_jdk.cmd
+++ b/distrib/makekeystore_jdk.cmd
@@ -1,2 +1,6 @@
+@REM --------------------------------------------------------------------------
+@REM Set HOSTNAME to the server's hostname
+@REM --------------------------------------------------------------------------
+@SET HOSTNAME=localhost
 @del keystore
-@keytool -keystore keystore -alias localhost -genkey -keyalg RSA -dname "CN=localhost, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
\ No newline at end of file
+@keytool -keystore keystore -alias %HOSTNAME% -genkey -keyalg RSA -dname "CN=%HOSTNAME%, OU=Gitblit, O=Gitblit, L=Some Town, ST=Some State, C=US"
\ No newline at end of file

--
Gitblit v1.9.1