git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with git ls-files
@ 2008-01-07  4:38 Imran M Yousuf
  2008-01-07  4:48 ` Imran M Yousuf
  0 siblings, 1 reply; 3+ messages in thread
From: Imran M Yousuf @ 2008-01-07  4:38 UTC (permalink / raw)
  To: git

Hi all,

I am facing a strange problem with git ls-files in git-submodule. When I do -
echo in modules init with "$@" - `git-ls-files --stage` - `git
ls-files --stage -- "$@" | grep -e '^160000 '` - `pwd`
The output is =

in modules init with d - 100644
c462997b94c371248bf17895ee18e7fbea5bce9b 0 .gitmodules 160000
091158296a8f57322f70f3c17e5fcb66687a0970 0 a 160000
6397239aeb662ba96f61b59ccc0a0d0812f48435 0 b 160000
c9f0a7dedcb4a9daf5a68c37109577d7d177e10b 0 c 100644
e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 main.txt - -
/home/imyousuf/projects/git-projs/test/super-project/a

If we format the above output of git list-files --stage we can see the following

100644 c462997b94c371248bf17895ee18e7fbea5bce9b 0 .gitmodules
160000 091158296a8f57322f70f3c17e5fcb66687a0970 0 a
160000 6397239aeb662ba96f61b59ccc0a0d0812f48435 0 b
160000 c9f0a7dedcb4a9daf5a68c37109577d7d177e10b 0 c
100644 e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 0 main.txt

In the output please note the path
/home/imyousuf/projects/git-projs/test/super-project/a

Now I am providing the output of -
ls -al /home/imyousuf/projects/git-projs/test/super-project/a

 drwxr-xr-x 4 imyousuf imyousuf 4096 2008-01-07 10:22 .
 drwxr-xr-x 6 imyousuf imyousuf 4096 2008-01-07 10:22 ..
 -rw-r--r-- 1 imyousuf imyousuf  130 2008-01-07 10:22 a.txt
 drwxr-xr-x 2 imyousuf imyousuf 4096 2008-01-07 10:22 d
 drwxr-xr-x 8 imyousuf imyousuf 4096 2008-01-07 10:22 .git
 -rw-r--r-- 1 imyousuf imyousuf   95 2008-01-07 10:22 .gitmodules


Now this is getting really confusing for me, because I get the strange
output when I call the git submodule from shell script but after the
shell script is executed if I do the same command copy and paste in
gnome-terminal it works fine.

Can someone please tell me what I am doing wrong?

Thank you,

Imran

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

end of thread, other threads:[~2008-01-07  5:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-07  4:38 Problem with git ls-files Imran M Yousuf
2008-01-07  4:48 ` Imran M Yousuf
2008-01-07  5:42   ` Imran M Yousuf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).