repo.or.cz
/
AROS.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
re-order some parts of the code so that the msg and rect are only allocated once.
[AROS.git]
/
scripts
/
repo_type.sh
blob
7fda1f6732dacb7d1f22b9c34bcc4814a2a9a465
1
#!/bin/sh
2
#
3
# get repository type
4
#
5
6
inside_git_repo
=
`cd
$1
&& git rev-parse --is-inside-work-tree 2>/dev/null`
7
8
if
test -d
$1
/
.svn
;
then
9
echo
"SVN"
10
else
11
if
[
"
$inside_git_repo
"
=
"true"
];
then
12
echo
"Git"
13
else
14
echo
""
15
fi
16
fi