Commits

Anonymous committed 5d318ce

git-var: make it work in subdirectory.

Use setup_git_directory() so that it can find its .git
directory.

Signed-off-by: Junio C Hamano <junkio@cox.net>

  • Participants
  • Parent commits ae2b0f1

Comments (0)

Files changed (1)

 	if (argc != 2) {
 		usage(var_usage);
 	}
+
+	setup_git_directory();
 	setup_ident();
 	val = NULL;