Skip to content

Commit

Permalink
updating gitbash to copy gitignore to be published in content git rep…
Browse files Browse the repository at this point in the history
…ository.
  • Loading branch information
AshrafAlam committed Apr 12, 2022
1 parent 0d35292 commit 4af8782
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build/git-push.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
ContentTargetGitAddress=${1:-https://github.com/EISK/eisk.webapi.git}
ContentTargetGitUserName=${2:-AshrafAlam}
ContentTargetGitUserEmail=${3:-joy_csharp@yahoo.com}
ContentTargetGitUserEmail=${3:-joycsc@gmail.com}

ContentSrc=${4:-content}

ContentTargetGitBranch=${5:-V8.0}
ContentTargetGitRepoDownloadFolder=${6:-content-repo}
ContentTargetGitBranch=${5:-content-branch}
ContentTargetGitRepoDownloadFolder="content-repo"

SOURCE_DIR=$PWD
TEMP_REPO_DIR=$PWD/$ContentTargetGitRepoDownloadFolder
Expand All @@ -24,6 +24,11 @@ git rm -r *
echo "Copy documentation into the repo"
cp -r $SOURCE_DIR/$ContentSrc/* .

echo $PWD

echo "Copy gitignore"
cp ./../../.gitignore .

echo "############################# Setting git identity"
if [ "$2" != "" ]; then
git config user.name $ContentTargetGitUserName
Expand Down

0 comments on commit 4af8782

Please sign in to comment.