Guest?
 
  • Showing issue #? of ? found
Back to Search
Project
SubGit
Priority
Normal
Type
Bug
State
Fixed
Assignee
Semyon Vadishev
Subsystem
Translator Core
Affected versions
No Affected versions
Fix versions
future, 1.0.0 (build 1696)
Fixed in build
No Fixed in build
  • Created by   Alexander Kitaev
    14 months ago (02 Mar 2012 15:09)
  • Updated by   Semyon Vadishev
    14 months ago (09 Mar 2012 17:00)
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
When trying a git push I get the following error any ideas:

Counting objects: 4, done.
Delta compression using up to 24 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 296 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: bash.exe: warning: could not find /tmp, please create!
remote: java.lang.NoClassDefFoundError: org/tmatesoft/translator/SubGitHook
remote: Caused by: java.lang.ClassNotFoundException: org.tmatesoft.translator.Suremote:
remote: at java.net.URLClassLoader$1.run(Unknown Source)
remote: at java.security.AccessController.doPrivileged(Native Method)
remote: at java.net.URLClassLoader.findClass(Unknown Source)
remote: at java.lang.ClassLoader.loadClass(Unknown Source)
remote: at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
remote: at java.lang.ClassLoader.loadClass(Unknown Source)
remote: Could not find the main class: org.tmatesoft.translator.SubGitHook. Proremote: l exit.
remote: Exception in thread “main” [chlewis@swsrvapps-01 ~/chris_test]$
Comments (5)
 
History
 
Linked Issues (?)
 
guest
  guest
08 Mar 2012 18:09
14 months ago
Hi,

I have checked the file and the following is given (note no cygwin installed) how would i check, I can’t see where the SCRIPT_DIR variable is set :

JAVA_HOME=”/C/Program Files (x86)/Java/jre6″
JAVA_EXE=”$JAVA_HOME/bin/java.exe”
MAIN_CLASS=org.tmatesoft.translator.SubGitHook
TS_CLASSPATH=”$SCRIPT_DIR/../../subgit/lib/subgit-1.0.0-EAP_902.jar”:”$SCRIPT_DIR/../../subgit/lib/svngitkit-2.0.0-SNAPSHOT_r2748_v20111207_2017.jar”:”$SCRIPT_DIR/../../subgit/lib/svnkit-1.7.0-SNAPSHOT_r8358_v20111220_1803.jar”:”$SCRIPT_DIR/../../subgit/lib/commons-codec-1.4.jar”:”$SCRIPT_DIR/../../subgit/lib/sequence-library-1.0.0.jar”:”$SCRIPT_DIR/../../subgit/lib/sqljet-1.1.0-SNAPSHOT_r1158_v20110809_2108.jar”:”$SCRIPT_DIR/../../subgit/lib/antlr-runtime-3.1.3.jar”:”$SCRIPT_DIR/../../subgit/lib/jna-3.2.7.jar”:”$SCRIPT_DIR/../../subgit/lib/annotations-7.0.3.jar”:”$SCRIPT_DIR/../../subgit/lib/org.eclipse.jgit-0.11.3-sgk-SNAPSHOT_t20111003_2148.jar”:”$SCRIPT_DIR/../../subgit/lib/jsch-0.1.44-1.jar”:”$SCRIPT_DIR/../../subgit/lib/jansi-1.6.jar”
Semyon Vadishev
  Semyon Vadishev
08 Mar 2012 21:20
14 months ago
Hello Chris,

From the classpath variable I can find that you're using build #902, please download the latest version of SubGit, build #1096 at http://subgit.com/download/, I believe we have fixed this issue.

Thanks!
Semyon Vadishev
  Semyon Vadishev
08 Mar 2012 21:26
14 months ago
I can’t see where the SCRIPT_DIR variable is set


That's a bit tricky in the hook scripts since we resolve absolute path for the SCRIPT_DIRECTORY variable:
abs_path "$(dirname "$PRG")" SCRIPT_DIR


In abs_path function we have the following code:
  APFN="${ap_with_basename}"
  eval $RESULT="'$APFN'"
guest
  guest
09 Mar 2012 16:46
14 months ago
Thanks the latest version has fixed the issue :-)
Semyon Vadishev
  Semyon Vadishev
09 Mar 2012 17:00
14 months ago
Great, then I close the issue as fixed.
Related Changes
Resolved Date
14 months ago (09 Mar 2012 17:00)
State
SubmittedFixed
Apply Command

Command Preview: