[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
test-vc-list-files-git.sh
From: |
Simon Josefsson |
Subject: |
test-vc-list-files-git.sh |
Date: |
Fri, 08 May 2009 15:45:50 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.93 (gnu/linux) |
This script fails on some systems (e.g., autobuilders) that doesn't have
a normal ~/.gitconfig:
*** Your name cannot be determined from your system services (gecos).
Run
git config --global user.email "address@hidden"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident <address@hidden
> not allowed
FAIL: test-vc-list-files-git.sh
How about this patch?
/Simon
2009-05-08 Simon Josefsson <address@hidden>
* tests/test-vc-list-files-git.sh: Do git config of user.email and
user.name to prevent git commit from complaining.
diff --git a/tests/test-vc-list-files-git.sh b/tests/test-vc-list-files-git.sh
index a42aec1..f1627e7 100755
--- a/tests/test-vc-list-files-git.sh
+++ b/tests/test-vc-list-files-git.sh
@@ -1,6 +1,6 @@
#!/bin/sh
# Unit tests for vc-list-files
-# Copyright (C) 2008 Free Software Foundation, Inc.
+# Copyright (C) 2008, 2009 Free Software Foundation, Inc.
# This file is part of the GNUlib Library.
#
# This program is free software: you can redistribute it and/or modify
@@ -36,6 +36,8 @@ mkdir $tmpdir && cd $tmpdir &&
|| { echo "Skipping test: git not found in PATH"; (exit 77); exit 77; }; }
&&
mkdir d &&
touch d/a b c &&
+ git config user.email "address@hidden"
+ git config user.name "Your Name"
git add . > /dev/null &&
git commit -q -a -m log &&
printf '%s\n' b c d/a > expected &&
- test-vc-list-files-git.sh,
Simon Josefsson <=