All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] t1020-subdirectory: test alias expansion in a subdirectory
@ 2010-11-08  8:32 Michael J Gruber
  2010-11-08 10:20 ` Nguyen Thai Ngoc Duy
  2010-11-08 10:23 ` [PATCH] t0001: test git init when run via an alias Nguyễn Thái Ngọc Duy
  0 siblings, 2 replies; 5+ messages in thread
From: Michael J Gruber @ 2010-11-08  8:32 UTC (permalink / raw)
  To: git; +Cc: Nguyễn Thái Ngọc Duy, Junio C Hamano

Add a test for alias expansion in a subdirectory of the worktree.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>

---
    65f3a9e (Remove all logic from get_git_work_tree(), 2010-11-01) breaks this test,
    which is why I am adding it.
    
    In fact, we don't really have tests for alias expansion at all, but that's a different issue.

 t/t1020-subdirectory.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/t/t1020-subdirectory.sh b/t/t1020-subdirectory.sh
index a3ac338..1fd187c 100755
--- a/t/t1020-subdirectory.sh
+++ b/t/t1020-subdirectory.sh
@@ -110,6 +110,14 @@ test_expect_success 'read-tree' '
 	)
 '
 
+test_expect_success 'alias expansion' '
+	(
+		git config alias.ss status &&
+		cd dir &&
+		git status &&
+		git ss
+	)
+'
 test_expect_success 'no file/rev ambiguity check inside .git' '
 	git commit -a -m 1 &&
 	(
-- 
1.7.3.2.193.g78bbb

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-11-09  1:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-08  8:32 [PATCH] t1020-subdirectory: test alias expansion in a subdirectory Michael J Gruber
2010-11-08 10:20 ` Nguyen Thai Ngoc Duy
2010-11-08 20:25   ` Junio C Hamano
2010-11-09  1:29     ` Nguyen Thai Ngoc Duy
2010-11-08 10:23 ` [PATCH] t0001: test git init when run via an alias Nguyễn Thái Ngọc Duy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.