Skip to content

Commit fa131e0

Browse files
committed
Updates git init scripts
1 parent 79a4778 commit fa131e0

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ apps/storybook/build-storybook.log
8484

8585
# Submodules
8686
.gitmodules
87-
apps/api
8887
apps/website
8988
apps/console
9089
apps/auth

git-init.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
exit 0
66
}
77

8-
./git-setup.sh api website console
8+
./git-setup.sh website console

git-setup.sh

+2-8
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# If no project name is given
33
if [ $# -eq 0 ]; then
44
# Display usage and stop
5-
echo "Usage: git-setup.sh <api,console,website>"
5+
echo "Usage: git-setup.sh <console,website>"
66
exit 1
77
fi
88
# Get remote url to support either https or ssh
@@ -30,13 +30,7 @@ for module in "$@"; do
3030
# We forcefully added the subdmoule which was in .gitignore, so unstage it.
3131
git restore --staged apps/$module
3232
else
33-
# If the module is the API, display a link to request access
34-
if [ "$module" = "api" ]; then
35-
echo "You don't have access to: '${module}' module. You can request access in: https://console.cal.com"
36-
else
37-
# If the module is not the API, display normal message
38-
echo "You don't have access to: '${module}' module."
39-
fi
33+
echo "You don't have access to: '${module}' module."
4034
fi
4135
done
4236
git restore --staged .gitmodules

0 commit comments

Comments
 (0)