Closed papampi closed 6 years ago
Make sure you have initialized/cloned tpruvot into its src folder, than checkout the 2.2.5 release tag you want to point to, thant go back to mvOC_miners repo, in 'git submodule status' you should see the new commit hash for that module, if you do 'git status' you should see that submodule ad "updated content", stage this for commit and push.
Basically (I'm going by memory so there might be syntax errors):
EDITED to fix paths
[...]/miners $ git submodule update --init TPccminer
[...]/miners $ cd TPccminer/src
[...]/src $ git checkout
Thanks a lot mate git checkout gives me error
~/nvoc/testing/miners$ git submodule update --init TPccminer
~/nvoc/testing/miners$ cd TPccmienr
~/nvoc/testing/miners/TPccminer$ git checkout a81ab0f
error: pathspec 'a81ab0f' did not match any file(s) known to git.
Try with the complete commit hash
Already tried that too
~/nvoc/testing/miners/TPccminer$ git checkout a81ab0f7a557a12a21d716dd03537bc8633fd176
fatal: reference is not a tree: a81ab0f7a557a12a21d716dd03537bc8633fd176
Try git fetch first. If it does not work tell me what it prints out with 'git status'
I'm sorry, you have to do it from inside TPccminer/src folder, which is the actual submodule repo.
Now getting closer, updated but cant push
~/nvoc/testing/miners$ git commit
HEAD detached at a578938
Changes not staged for commit:
modified: TPccminer/src (new commits)
~/nvoc/testing/miners$ git push
fatal: You are not currently on a branch.
To push the history leading to the current (detached HEAD)
state now, use
git push origin HEAD:<name-of-remote-branch>
Name of which branch I should add, tried many, none worked. Tried from both nvoc/testing and nvoc/testing/miners too
:~/nvoc/testing/miners$ git commit
[detached HEAD 242b7ec] Changes to be committed: modified: TPccminer/src
1 file changed, 1 insertion(+), 1 deletion(-)
:~/nvoc/testing/miners$ git push origin HEAD:nvOC_miners
Username for 'https://github.com': papampi
Password for 'https://papampi@github.com':
error: unable to push to unqualified destination: nvOC_miners
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'https://github.com/papampi/nvOC_miners.git'
Done
~/nvoc/testing/miners$ git push origin HEAD:19-2.1
Username for 'https://github.com': papampi
Password for 'https://papampi@github.com':
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 358 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/papampi/nvOC_miners.git
a578938..242b7ec HEAD -> 19-2.1
Thanks a lot
Try: git push origin 19-2.1
That "error" is because miners repo is checked out in detached HEAD state, which is ok,
@LuKePicci How to change/update miner source? I updated tpruvot ccminer to 2.2.5 but have no idea how to update the source from 2.2.4 to 2.2.5 ...