From: "Franklin S. Cooper Jr" <[email protected]>

* Use git commands to clear previously set local git config settings
* Current approach causes problems within the git repository

Signed-off-by: Franklin S. Cooper Jr <[email protected]>
---
 meta-arago-distro/classes/sourceipk.bbclass |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/meta-arago-distro/classes/sourceipk.bbclass 
b/meta-arago-distro/classes/sourceipk.bbclass
index 26d3922..0e778f4 100644
--- a/meta-arago-distro/classes/sourceipk.bbclass
+++ b/meta-arago-distro/classes/sourceipk.bbclass
@@ -177,10 +177,8 @@ adjust_git() {
             # (remote) git repository
             git repack -a -d
 
-
             if [ "${SRCIPK_CUSTOM_GIT_BRANCH}" != "" -a 
"${SRCIPK_CUSTOM_GIT_MESSAGE}" != "" ]
             then
-
                 # Create local git config settings to create commit
                 git config user.email "<>"
                 git config user.name "Texas Instruments SDK Builder"
@@ -199,8 +197,9 @@ adjust_git() {
                     git checkout -b "${SRCIPK_CUSTOM_GIT_BRANCH}"
                 fi
 
-                # Delete local git config settings
-                rm .gitconfig .git/config > /dev/null 2>&1 || echo ""
+                # Delete local git config settings previously set
+                git config --unset user.email
+                git config --unset user.name
 
             fi
 
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to